Vector.lastIter

Returns an iterator to the last element of the vector.

Arguments

None

Return values

iterator
pointing to the last element.

Complexity

Constant

Example

"sl/algebra" useFile v1: (1.0 2.0 3.0) makeVector; it: v1.firstIter; [ it.get print it v1.lastIter = [ FALSE ] [ "," print TRUE ] if it.next !it ] loop
Output:
1.000000,2.000000,3.000000