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

Function environment

packages/effect/src/internal/differ.ts:50–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48
49/** @internal */
50export const environment = <A>(): Differ.Differ<Context<A>, Differ.Differ.Context.Patch<A, A>> =>
51 make({
52 empty: ContextPatch.empty(),
53 combine: (first, second) => ContextPatch.combine(second)(first),
54 diff: (oldValue, newValue) => ContextPatch.diff(oldValue, newValue),
55 patch: (patch, oldValue) => ContextPatch.patch(oldValue)(patch)
56 })
57
58/** @internal */
59export const chunk = <Value, Patch>(

Callers

nothing calls this directly

Calls 4

makeFunction · 0.70
combineMethod · 0.65
diffMethod · 0.65
patchMethod · 0.65

Tested by

no test coverage detected