const fileName_1 = "(@effect/core) _src/io/Schedule/operations/fold.ts";
import * as tsplus_module_1 from "@effect/core/io/Effect/operations/succeed";
import * as tsplus_module_2 from "@effect/core/io/Schedule/operations/foldEffect";
/**
 * Returns a new schedule that folds over the outputs of this one.
 *
 * @tsplus fluent ets/Schedule fold
 * @tsplus fluent ets/Schedule/WithState fold
 */

export function fold_(self, z, f) {
  return tsplus_module_2.foldEffect_(self, z, (z, out) => tsplus_module_1.succeed(() => f(z, out), fileName_1 + ":12:55"));
}
/**
 * Returns a new schedule that folds over the outputs of this one.
 *
 * @tsplus static ets/Schedule/Aspects fold
 */

export const fold = (z, f) => self => fold_(self, z, f);
//# sourceMappingURL=fold.mjs.map