HashTable.endIter

Returns an end iterator.

Arguments

None

Return values

iterator
is a HashTableIterator pointing to a non-existing element after the end of the table. Getters and setters cannot be used for this iterator, it is only necessary for a condition of completing a search. The previous iterator for it points to the last element of the table. The next iterator for it points to the first element of the table.

Complexity

Constant

Example

"sl/hashTable" useFile a: HashTable; a.empty print LF print 34 "element" a.insert 35 "element" a.insert -35 "element" a.insert it: a.firstIter; [ it a.endIter = ~ ] [ it.get print LF print it.next !it ] while
Output:
TRUE { key: 34; value: "element"; } { key: 35; value: "element"; } { key: -35; value: "element"; }