Remove zero, one or more words lazily from the Trie, no node is actually removed.
(s ...string)
| 90 | |
| 91 | // Remove zero, one or more words lazily from the Trie, no node is actually removed. |
| 92 | func (n *Node) Remove(s ...string) { |
| 93 | for _, ss := range s { |
| 94 | n.remove(ss) |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | // Compact will remove unecessay nodes, reducing the capacity, returning true if node n itself should be removed. |
| 99 | func (n *Node) Compact() (remove bool) { |