/** * Accesses the environment of the transaction. * * @tsplus static effect/core/stm/STM.Ops environmentWith */ export function environmentWith(f: (env: Env) => A): STM { return STM.environment().map(f) }