Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fun/mod.ts>nil.fold

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

Parameters

reducer: (accumulator: O, current: A) => O
initial: O

Returns

(ua: Nil<A>) => O