fold
import { fold } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/pair.ts";Reduces a pair with an initial value, also passing the second value into the foldr as well.
@example
import { pair, fold } from "./pair.ts";
import { pipe } from "./fn.ts";
const result = pipe(
pair(10, 20),
fold(Math.max, Number.NEGATIVE_INFINITY),
); // 20