(node: Node<V>, keyString: string)
| 116 | } |
| 117 | |
| 118 | addToStack(node: Node<V>, keyString: string) { |
| 119 | if (node.right !== undefined) { |
| 120 | this.stack.push([node.right, keyString, false]) |
| 121 | } |
| 122 | if (node.mid !== undefined) { |
| 123 | this.stack.push([node.mid, keyString + node.key, false]) |
| 124 | } |
| 125 | this.stack.push([node, keyString, true]) |
| 126 | if (node.left !== undefined) { |
| 127 | this.stack.push([node.left, keyString, false]) |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | [Symbol.iterator](): IterableIterator<T> { |
| 132 | return new TrieIterator(this.trie, this.f, this.filter) |