Skip to main content
Module

x/fun/foldable.ts>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
implements Hold<U>
import { type Foldable } from "https://deno.land/x/fun@v2.0.0/foldable.ts";

A Foldable structure has the method fold.

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