HashTable.lastIter

Returns an iterator pointing to the last entry of the table.

Arguments

None

Return values

iterator
is a HashTableIterator pointing to the last entry.

Complexity

Constant

Example

"sl/hashTable" useFile a: HashTable; 35 "element" a.insert 0 "ZERO" a.insert 34 "element" a.insert -25 "element" a.insert 19 "nineteen" a.insert 34n8 135 a.insert 32 { a:0; b:1; } a.insert a.lastIter.get print
Output:
{ key: -25; value: "element"; }