/** * Transforms the environment being provided to the stream with the specified * function. * * @tsplus static effect/core/stream/Stream.Aspects provideSomeEnvironment * @tsplus pipeable effect/core/stream/Stream provideSomeEnvironment */ export function provideSomeEnvironment( f: (r0: Env) => Env ) { return (self: Stream): Stream => Stream.environmentWithStream((env: Env) => self.provideEnvironment(f(env))) }