Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/fun/foldable.ts>collect

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

Parameters

unnamed 0: Foldable<U>
unnamed 1: Initializable<A>

Returns

<B = never, C = never, D = unknown, E = unknown>(ua: $<U, [A, B, C], [D], [E]>) => A