/** * Accesses the environment of the stream in the context of an effect. * * @tsplus static effect/core/stream/Stream.Ops environmentWithEffect */ export function environmentWithEffect( f: (env: Env) => Effect ): Stream { return Stream.environment().mapEffect(f) }