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