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

Function hashMap

packages/effect/src/internal/differ.ts:70–78  ·  view source on GitHub ↗
(
  differ: Differ.Differ<Value, Patch>
)

Source from the content-addressed store, hash-verified

68
69/** @internal */
70export const hashMap = <Key, Value, Patch>(
71 differ: Differ.Differ<Value, Patch>
72): Differ.Differ<HashMap<Key, Value>, Differ.Differ.HashMap.Patch<Key, Value, Patch>> =>
73 make({
74 empty: HashMapPatch.empty(),
75 combine: (first, second) => HashMapPatch.combine(second)(first),
76 diff: (oldValue, newValue) => HashMapPatch.diff({ oldValue, newValue, differ }),
77 patch: (patch, oldValue) => HashMapPatch.patch(oldValue, differ)(patch)
78 })
79
80/** @internal */
81export const hashSet = <Value>(): Differ.Differ<HashSet<Value>, Differ.Differ.HashSet.Patch<Value>> =>

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