variable fold
import { fold } from "main.ts";

Type

<T, S>(iterable: Iterable<T>, initial: S, accumulate: (accumulator: S, value: T) => S) => S