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

Function makeImpl

packages/effect/src/internal/trie.ts:71–76  ·  view source on GitHub ↗
(root: Node<V> | undefined)

Source from the content-addressed store, hash-verified

69}
70
71const makeImpl = <V>(root: Node<V> | undefined): TrieImpl<V> => {
72 const trie = Object.create(TrieProto)
73 trie._root = root
74 trie._count = root?.count ?? 0
75 return trie
76}
77
78class TrieIterator<in out V, out T> implements IterableIterator<T> {
79 stack: Array<[Node<V>, string, boolean]> = []

Callers 3

emptyFunction · 0.70
trie.tsFile · 0.70
keySetFunction · 0.50

Calls 1

createMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…