HashTable enumIter
Enumerates all entries of a table using an input function with the possibility to interrupt and modify the table while enumerating.
Arguments
table
is the HashTable to enumerate.body
is the callable to be called for each entry. It has the following stack notation:
( iterator -- condition )
Each HashTableIterator for each entry will be provided as input
iterator
to the callable. When the output condition
is FALSE, enumeration interrupts.
Return values
None
Complexity
O(size)
Example
Output:
{ key: 34; value: "135"; }
{ key: -25; value: "element"; }
{ key: 35; value: "element"; }