Skip to main content
Module

x/fun/mod.ts>foldable.collect

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

Type Parameters

U extends Kind
A

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