Skip to main content
Module

x/fun/mod.ts>reducible.collect

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

Type Parameters

U extends Kind
A

Parameters

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

Returns

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