Trie (gb.data)

This class implements a Patricia Trie. You can learn about its semantics from Wikipedia.

This class is
Create a new, empty Trie.
creatable
.
This class acts like a
Return the value associated with a key. If the key was not found, return Null.
read
/
Associate a value with a given key. If the value is Null, the key is removed.
write
array.
This class is
Enumerates all values in the Trie in lexicographic key order. The Key property is set for each enumerated value.
enumerable
with the FOR EACH keyword.

Properties

Methods
Return the number of values in the Trie.
Count  
Return the key of the last enumerated element.
Key  
Associate a value with a given key. If the value is Null, the key is removed.
Add  
Remove all elements from the Trie.
Clear  
Return the completion of the given prefix, that is the longest unambiguous continuation of the input string.
Complete  
Return whether the named key exists, i.e. if it has a value.
Exist  
Return a TriePrefix object to search part of a trie.
GetPrefix  
Remove the named element. This is equivalent to _put'ing Null into its key.
Remove