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