UNPKG

@effect-ts/system

Version:

Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.

10 lines (9 loc) 311 B
import * as DropLeftover from "./dropLeftover.mjs"; import * as Fold from "./fold.mjs"; /** * A sink that folds its inputs with the provided function and initial state. */ export function foldLeft(z, f) { return DropLeftover.dropLeftover(Fold.fold(z, _ => true, f)); } //# sourceMappingURL=foldLeft.mjs.map