LinkedList.lastIter

Returns an iterator pointing to the last entry of the list.

Arguments

None

Return values

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

Complexity

Constant.

Example

"sl/linkedList" useFile a: (1 2 0 5 "Hello" 0.3) makeList; a.lastIter.get print
Output:
0.300000