// ets_tracing: off import type * as T from "../../../../Effect/index.js" import type * as M from "../../../../Managed/index.js" import type * as C from "../core.js" import * as RunReduceWhileManagedEffect from "./runReduceWhileManagedEffect.js" /** * Executes an effectful fold over the stream of values. * Returns a Managed value that represents the scope of the stream. */ export function runReduceManagedEffect_( self: C.Stream, s: S, f: (s: S, a: A) => T.Effect ): M.Managed { return RunReduceWhileManagedEffect.runReduceWhileManagedEffect_( self, s, (_) => true, f ) } /** * Executes an effectful fold over the stream of values. * Returns a Managed value that represents the scope of the stream. * * @ets_data_first runReduceManagedEffect_ */ export function runReduceManagedEffect( s: S, f: (s: S, a: A) => T.Effect ) { return (self: C.Stream) => runReduceManagedEffect_(self, s, f) }