import * as tsplus_module_1 from "@effect/core/stream/Stream/operations/runFoldWhileScoped";
/**
 * Executes a pure fold over the stream of values. Returns a scoped value
 * that represents the scope of the stream.
 *
 * @tsplus fluent ets/Stream runFoldScoped
 */

export function runFoldScoped_(self, s, f, __tsplusTrace) {
  return tsplus_module_1.runFoldWhileScoped_(self, s, () => true, f, __tsplusTrace);
}
/**
 * Executes a pure fold over the stream of values. Returns a scoped value
 * that represents the scope of the stream.
 *
 * @tsplus static ets/Stream/Aspects runFoldScoped
 */

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