Skip to main content
Module

x/fun/mod.ts>foldable.Foldable

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

A Foldable structure has the method fold.

Type Parameters

U extends Kind

Properties

readonly
fold: <A, O>(reducer: (accumulator: O, value: A) => O, accumulator: O) => <B = never, C = never, D = unknown, E = unknown>(ua: $<U, [A, B, C], [D], [E]>) => O