effect-io-ai

Package: effect
Module: Effect

Effect.contextWith

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

Signature

declare const contextWith: <R, A>(f: (context: Context.Context<R>) => A) => Effect<A, never, R>

Source

Since v2.0.0