MCPcopy Index your code
hub / github.com/Effect-TS/effect / contextWith

Function contextWith

packages/effect/src/internal/sink.ts:686–688  ·  view source on GitHub ↗
(
  f: (context: Context.Context<R>) => Z
)

Source from the content-addressed store, hash-verified

684
685/** @internal */
686export const contextWith = <R, Z>(
687 f: (context: Context.Context<R>) => Z
688): Sink.Sink<Z, unknown, never, never, R> => pipe(context<R>(), map(f))
689
690/** @internal */
691export const contextWithEffect = <R0, A, E, R>(

Callers

nothing calls this directly

Calls 3

pipeFunction · 0.70
contextFunction · 0.70
mapFunction · 0.50

Tested by

no test coverage detected