Package: effect
Module: Effect
Accesses the context and applies a transformation function.
Details
This function retrieves the context of the effect and applies a pure transformation function to it. The result of the transformation is then returned within the effect.
See
contextWithEffect for a version that allows effectful transformations.Signature
declare const contextWith: <R, A>(f: (context: Context.Context<R>) => A) => Effect<A, never, R>
Since v2.0.0