Methods

makeRange ( -- range )  creates a range that points to all entries of the table

clear ( -- )  deletes all entries from the table

empty ( -- condition )  checks if the hashtable is empty

endIter ( -- iterator )  returns an “end” iterator for the hashtable

erase ( key )  erases an entry by its key

eraseIter ( iterator -- )  deletes an entry from the table by its iterator

find ( key -- value exists )  finds a value by its key

findIter ( key -- iterator exists )  finds an iterator by key

firstIter ( -- iterator )  returns an iterator pointing to the first entry of the table

getSize ( -- size )  returns the number of elements in the table

insert ( key value -- )  inserts a value with a key, overwriting an old value if the key exists

lastIter ( -- iterator )  returns an iterator pointing to the last entry of the table

single ( -- condition )  checks if there is exactly one entry in the table

Free functions

copy ( table0 -- table1 )  copies a table, copying all its entries

enum ( table body -- )  enumerates all entries of a table in ascending index order using an input function with the possibility to interrupt

enumIter ( table body -- )  enumerates all entries of a table in ascending index order using an input function with the possibility to interrupt and modify the table while enumerating

HashTable ( -- table )  creates an empty HashTable

makeHashTable ( range -- table )  creates a table from a range of pairs (key value), all entries will be aliased

makeHashTable ( list -- table )  creates a table from a builtin-list of pairs (key value), all entries will be aliased

= ( iterator0 iterator1 -- condition )  checks if iterators point to the same entry

@ ( key table -- value )  returns an entry by key

! ( value key table -- )  sets an entry by an existing key

Tags

HASH_TABLE

INDEX_OVERLOAD

CONTAINER