Array.endIter

Returns an end iterator.

Arguments

None

Return values

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

Complexity

Constant

Example

"sl/array" useFile a: (-1 2 3 5 6 "7") makeArray; it: a.firstIter; [ it a.endIter = ~ ][ it.get print "," print it.next !it ] while
Output:
-1,2,3,5,6,7,