import * as tsplus_module_1 from "@effect/core/stream/Stream/operations/runFoldWhileScopedEffect";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/scoped";
/**
 * Executes a pure fold over the stream of values - reduces all elements in
 * the stream to a value of type `S`.
 *
 * @tsplus fluent ets/Stream runFoldEffect
 */

export function runFoldEffect_(self, s, f, __tsplusTrace) {
  return tsplus_module_2.scoped(() => tsplus_module_1.runFoldWhileScopedEffect_(self, s, () => true, f, __tsplusTrace), __tsplusTrace);
}
/**
 * Executes a pure fold over the stream of values - reduces all elements in
 * the stream to a value of type `S`.
 *
 * @tsplus static ets/Stream/Aspects runFoldEffect
 */

export const runFoldEffect = (s, f, __tsplusTrace) => self => runFoldEffect_(self, s, f, __tsplusTrace);
//# sourceMappingURL=runFoldEffect.mjs.map