Skip to main content
Module

x/fun/mod.ts>map.collect

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Latest
function map.collect
import { map } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { collect } = map;

Parameters

O: Sortable<B>

Returns

<A, I>(fai: (b: B, a: A) => I) => (ta: ReadonlyMap<B, A>) => ReadonlyArray<I>