/** * Consumes all elements of the stream, passing them to the specified * callback. * * @tsplus static effect/core/stream/Stream.Aspects runForEach * @tsplus pipeable effect/core/stream/Stream runForEach */ export function runForEach( f: (a: A) => Effect ) { return (self: Stream): Effect => self.run( Sink.forEach(f) ) }