LinkedList.endIter

Returns an end iterator.

Arguments

None

Return values

iterator
is a ListIterator pointing to a non-existing element after the end of the list. Getters and setters cannot be used for this iterator, it is only necessary for a condition of completing a search or for insertBefore and insertAfter methods. The previous iterator for it points to the last element of the list. The next iterator for it points to the first element of the list.

Complexity

Constant

Example

"sl/linkedList" useFile a: (1 2 0 5 "Hello" 0.3) makeList; it: a.firstIter; [ it a.endIter = ~ ] [ it.get print "," print it.next !it ] while
Output:
1,2,0,5,"Hello",0.300000,