MCPcopy
hub / github.com/Effect-TS/effect / EmptyNode

Class EmptyNode

packages/effect/src/internal/hashMap/node.ts:24–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22
23/** @internal */
24export class EmptyNode<out K, out V> {
25 readonly _tag = "EmptyNode"
26
27 modify(
28 edit: number,
29 _shift: number,
30 f: HashMap.UpdateFn<V>,
31 hash: number,
32 key: K,
33 size: SizeRef
34 ): Node<K, V> {
35 const v = f(O.none())
36 if (O.isNone(v)) return new EmptyNode()
37 ++size.value
38 return new LeafNode(edit, hash, key, v)
39 }
40}
41
42/** @internal */
43export function isEmptyNode(a: unknown): a is EmptyNode<unknown, unknown> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…