import * as tsplus_module_1 from "@effect/core/stream/Sink/operations/foldChunks";
import * as tsplus_module_2 from "@effect/core/stream/Sink/operations/dropLeftover";
/**
 * A sink that folds its input chunks with the provided function and initial
 * state. `f` must preserve chunking-invariance.
 *
 * @tsplus static ets/Sink/Ops foldLeftChunks
 */

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