Home

StringHash

Hash table that stores strings

Operations

New

Default constructor

New()

Empty

Clears the map

method : public : native : Empty() ~ Nil

Find

Searches for a value in a hash

method : public : Find(key:String) ~ Base
Parameters
NameTypeDescription
keyStringsearch key

Return
TypeDescription
Basefound value, Nil if not found

GetKeys

Get a collection of keys

method : public : GetKeys() ~ Vector
Return
TypeDescription
Vectorvector of keys

GetValues

Gets a collection of values

method : public : GetValues() ~ Vector
Return
TypeDescription
Vectorvector of values

Has

Checks for a value in a hash

method : public : Has(key:String) ~ Bool
Parameters
NameTypeDescription
keyStringsearch key

Return
TypeDescription
Booltrue if found, false otherwise

Insert

Inserts a value into the hash

method : public : Insert(key:String, value:Base) ~ Nil
Parameters
NameTypeDescription
keyStringkey
valueBasevalue

Remove

Removes a value from the hash

method : public : Remove(key:String) ~ Bool
Parameters
NameTypeDescription
keyStringkey for value to remove

Return
TypeDescription
Booltrue if removed, false otherwise

Size

Size of map

method : public : native : Size() ~ Int
Return
TypeDescription
Intsize of queue