// ets_tracing: off import type * as C from "./core.js" import * as DropLeftover from "./dropLeftover.js" import * as Fold from "./fold.js" /** * A sink that folds its inputs with the provided function and initial state. */ export function foldLeft( z: S, f: (s: S, in_: In) => S ): C.Sink { return DropLeftover.dropLeftover(Fold.fold(z, (_) => true, f)) }