import { constTrue } from "@tsplus/stdlib/data/Function" /** * Executes an effectful fold over the stream of values. Returns a scoped * value that represents the scope of the stream. * * @tsplus static effect/core/stream/Stream.Aspects runFoldScopedEffect * @tsplus pipeable effect/core/stream/Stream runFoldScopedEffect */ export function runFoldScopedEffect( s: S, f: (s: S, a: A) => Effect ) { return (self: Stream): Effect => self.runFoldWhileScopedEffect(s, constTrue, f) }