Home

Hash

Hash table that stores objects

Operations

New

Default constructor

New()

Empty

Clears the map

method : public : Empty() ~ Nil

Find

Searches for a value in a hash

method : public : native : Find(key:Compare) ~ Base
Parameters
NameTypeDescription
keyComparesearch key

Return
TypeDescription
Basefound value, Nil if not found

GetKeys

Get a collection of keys

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

GetValues

Gets a collection of values

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

Has

Checks for a value in a hash

method : public : native : Has(key:Compare) ~ Bool
Parameters
NameTypeDescription
keyComparesearch key

Return
TypeDescription
Booltrue if found, false otherwise

Insert

Inserts a value into the hash

method : public : Insert(key:Compare, value:Base) ~ Nil
Parameters
NameTypeDescription
keyComparekey
valueBasevalue

Remove

Removes a value from the hash

method : public : native : Remove(key:Compare) ~ Bool
Parameters
NameTypeDescription
keyComparekey for value to remove

Size

Size of map

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