class documentation
A Trie implementation for strings
Method | __init__ |
Builds a Trie object, which is built around a dict |
Method | __missing__ |
Undocumented |
Method | insert |
Inserts string into the Trie |
Constant | LEAF |
Undocumented |
Builds a Trie object, which is built around a dict
If strings is provided, it will add the strings, which consist of a list of strings, to the Trie. Otherwise, it'll construct an empty Trie.
Parameters | |
strings:list(str) | List of strings to insert into the trie (Default is None) |