Range.endIter

Returns an end iterator for the range.

Arguments

None

Return values

iterator
pointing to a non-existing element after the end of the range. Getters and setters cannot be used for it. The previous iterator for it points to the last element of the range.

Complexity

Constant

Example

"sl/redBlackTree" useFile rb: ((1 "ONE") (2 "TWO") (10 "TEN") (50 "FIFTY")) makeRedBlackTree; r: 2 20 rb.makeRange.bound; it: r.firstIter; [it r.endIter = ~] [ it.get print LF print it.next !it ] while
Output:
{ key: 2; value: "TWO"; } { key: 10; value: "TEN"; }