// ets_tracing: off import type * as C from "../core.js" import * as Chain from "./chain.js" import * as Environment from "./environment.js" /** * Accesses the environment of the stream in the context of a stream. */ export function accessStream( f: (r: R) => C.Stream ): C.Stream { return Chain.chain_(Environment.environment(), f) }