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

Method constructor

packages/effect/src/internal/trie.ts:84–96  ·  view source on GitHub ↗
(
    trie: TrieImpl<V>,
    f: TraversalMap<string, V, T>,
    filter: TraversalFilter<string, V>
  )

Source from the content-addressed store, hash-verified

82 readonly filter: TraversalFilter<string, V>
83
84 constructor(
85 trie: TrieImpl<V>,
86 f: TraversalMap<string, V, T>,
87 filter: TraversalFilter<string, V>
88 ) {
89 this.trie = trie
90 this.f = f
91 this.filter = filter
92 const root = trie._root !== undefined ? trie._root : undefined
93 if (root !== undefined) {
94 this.stack.push([root, "", false])
95 }
96 }
97
98 next(): IteratorResult<T> {
99 while (this.stack.length > 0) {

Callers

nothing calls this directly

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected