Array.lastIter

Returns an iterator to the last element of the array.

Arguments

None

Return values

iterator
is an ArrayIterator pointing to the last element. If the array is empty, an “end” iterator is returned (see endIter).

Complexity

Constant

Example

"sl/array" useFile a: (-1 2 3 5 6 "7") makeArray; "SEVEN" a.lastIter.set a [print "," print TRUE] enum
Output:
-1,2,3,5,6,SEVEN,