import * as tsplus_module_1 from "@effect/core/stream/Sink/operations/fold";
import * as tsplus_module_2 from "@effect/core/stream/Sink/operations/dropLeftover";
/**
 * A sink that folds its inputs with the provided function and initial state.
 *
 * @tsplus static ets/Sink/Ops foldLeft
 */

export function foldLeft(z, f, __tsplusTrace) {
  return tsplus_module_2.dropLeftover(tsplus_module_1.fold(z, () => true, f, __tsplusTrace), __tsplusTrace);
}
//# sourceMappingURL=foldLeft.mjs.map