github.com
baetheus
fun
foldable.ts
main
https://raw.githubusercontent.com/baetheus/fun/main/foldable.ts
Copyimport * as fun from "https://raw.githubusercontent.com/baetheus/fun/main/foldable.ts";
import * as fun from "https://raw.githubusercontent.com/baetheus/fun/main/foldable.ts";
Foldable is a structure that allows a function to all values inside of a structure. The reduction is accumulative and ordered.
A Foldable structure has the method fold.