Range.lastIter

Returns an iterator pointing to the last element of the range. Not applicable to RedBlackTreeRange.

Arguments

None

Return values

iterator
pointing to the first element.

Complexity

Constant

Example

"sl/hashTable" useFile ht: ((1 "ONE") (2 "TWO") (10 "TEN") (50 "FIFTY")) makeHashTable; r: ht.makeRange; it: r.firstIter; [ it.get print LF print it r.lastIter = [FALSE] [it.next !it TRUE] if ] loop
Output:
{ key: 1; value: "ONE"; } { key: 2; value: "TWO"; } { key: 10; value: "TEN"; } { key: 50; value: "FIFTY"; }