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

Function makeAdd

packages/effect/src/internal/differ/hashMapPatch.ts:70–75  ·  view source on GitHub ↗
(key: Key, value: Value)

Source from the content-addressed store, hash-verified

68})
69
70const makeAdd = <Key, Value, Patch>(key: Key, value: Value): Differ.Differ.HashMap.Patch<Key, Value, Patch> => {
71 const o = Object.create(AddProto)
72 o.key = key
73 o.value = value
74 return o
75}
76
77interface Remove<Key, Value, Patch> extends Differ.Differ.HashMap.Patch<Key, Value, Patch> {
78 readonly _tag: "Remove"

Callers 1

diffFunction · 0.70

Calls 1

createMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…