MCPcopy Create free account
hub / github.com/Effect-TS/effect / withFlat

Function withFlat

packages/effect/src/Context.ts:522–526  ·  view source on GitHub ↗
(self: Context<any>, f: (map: Map<string, any>) => void)

Source from the content-addressed store, hash-verified

520}
521
522const withFlat = <B>(self: Context<any>, f: (map: Map<string, any>) => void): Context<B> => {
523 const map = new Map(self.mapUnsafe)
524 f(map)
525 return makeUnsafe(map)
526}
527
528// A private symbol so user code cannot forge a value that reads as absent
529const notFound = Symbol()

Callers 3

Context.tsFile · 0.85
pickFunction · 0.85
omitFunction · 0.85

Calls 2

makeUnsafeFunction · 0.70
fFunction · 0.50

Tested by

no test coverage detected