package
Version:
v1.7.8-beta.0
Opens a new window with list of versions in this module.
Published: Sep 29, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
A simple trie implementation with Add an HasPrefix methods only.
New creates a Trie and add all strings in the provided list to it.
Add adds a word to this trie
GetPrefix is like HasPrefix but return the prefix in case of match or empty string otherwise.
HasPrefix returns true of v has any of the prefixes stored in this trie.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.