TrieSET Methods |
The TrieSET type exposes the following members.
Name | Description | |
---|---|---|
![]() | Add |
Adds the key to the set if it is not already present. |
![]() | Contains |
Does the set contain the given key? |
![]() | Delete |
Removes the key from the set if the key is present. |
![]() | GetEnumerator |
Returns all of the keys in the set, as an iterator.
To iterate over all of the keys in a set named set, use the
foreach notation: foreach (Key key in set). |
![]() | KeysThatMatch |
Returns all of the keys in the set that match pattern,
where . symbol is treated as a wildcard character. |
![]() | KeysWithPrefix |
Returns all of the keys in the set that start with prefix. |
![]() | LongestPrefixOf |
Returns the string in the set that is the longest prefix of query,
or null, if no such string. |
![]() ![]() | MainTest |
Demo test the TrieSET data type. |