Home

Hash<K:Compare,V>

Hash table of generics

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:K) ~ V
Parameters
NameTypeDescription
keyKsearch key

Return
TypeDescription
Vfound value, Nil if not found

GetKeys

Get a collection of keys

method : public : native : GetKeys() ~ Vector<K>
Return
TypeDescription
Vector<K>vector of keys

GetValues

Gets a collection of values

method : public : native : GetValues() ~ Vector<V>
Return
TypeDescription
Vector<V>vector of values

Has

Checks for a value in a hash

method : public : Has(key:K) ~ Bool
Parameters
NameTypeDescription
keyKsearch key

Return
TypeDescription
Booltrue if found, false otherwise

Insert

Inserts a value into the hash

method : public : Insert(key:K, value:V) ~ Nil
Parameters
NameTypeDescription
keyKkey
valueVvalue

Remove

Removes a value from the hash

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

Size

Size of map

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