EinhugurCollections.PrefixDictionary Class (console safe)
ApPrefix dictionary class.
Prefix dictionaries are optimised and extremely fast in getting one to many result sets based on prefix of a given key. Prefix dictionaries are often used for things like auto complete for example.
The dictionary also has characteristics of normal dictionary where you can fetch one value at a time by key.
This version of the PrefixDictionary is case sensitive.
Object
PrefixDictionary
class EinhugurCollections.PrefixDictionary
Properties
KeyCount | Returns the number of key-value pairs in the Dictionary. |
Methods
HasKey | Returns True if Key is in the Dictionary and False if it is not. |
Keys | Returns all the keys in the Dictionary as an array of String. |
Lookup | Looks up value of a Key and Returns its value Variant or default value if key was not found. |
Remove | Removes by key from the Dictionary. |
RemoveAll | Removes all entries from the Dictionary. |
SearchByPrefix | Finds all values in the dictionary which have given prefix. |
Value | Retrieves the value associated with the supplied key. |
Value | Assigns a value to the key item in the PrefixDictionary |
Values | Returns all the values in the Dictionary as an array of Variants. |
Supported Platforms:
macOS Intel 64 bitmacOS Apple SiliconWindows 32 bitWindows 64 bitWindows ARM 64 bitLinux 32 bitLinux 64 bitLinux ARM 32 bitLinux ARM 64 bitiOS