/** * Provides some of the environment required to run this effect, * leaving the remainder `R0`. * * @tsplus static effect/core/io/Effect.Aspects provideSomeEnvironment * @tsplus pipeable effect/core/io/Effect provideSomeEnvironment */ export function provideSomeEnvironment(f: (r0: Env) => Env) { return (self: Effect): Effect => Effect.environmentWithEffect((r0: Env) => self.provideEnvironment(f(r0))) }