import * as tsplus_module_1 from "@effect/core/io/Effect/operations/zipWith";
import * as tsplus_module_2 from "@tsplus/stdlib/collections/Collection/functions";
import * as tsplus_module_3 from "@effect/core/io/Effect/operations/suspendSucceed";
/**
 * Reduces an `Collection<Effect<R, E, A>>` to a single `Effect<R, E, A>`, working
 * sequentially.
 *
 * @tsplus static ets/Effect/Ops reduceAll
 */

export function reduceAll(a, as, f, __tsplusTrace) {
  return tsplus_module_3.suspendSucceed(() => tsplus_module_2.reduce_(as(), a(), (acc, a) => tsplus_module_1.zipWith_(acc, () => a, f, __tsplusTrace)), __tsplusTrace);
}
//# sourceMappingURL=reduceAll.mjs.map