Library / Collections / Lists / LinkedListIterator
CLASSIMPLEMENTS ReferenceIterator<T>
LinkedListIterator
Concrete BidirectionalIterator OF T for LinkedList[T].
Constructors 1
INIT(REFERENCE LinkedListNode[T] source_head_node)
Methods 4
METHOD hasNext() RETURNS booleanreads
MODIFY METHOD next() RETURNS | REFERENCE Tmodifies
METHOD peek() RETURNS | REFERENCE Treads
MODIFY METHOD skip(uint64 n) RETURNS | REFERENCE Tmodifies
skip(n) — moves cursor forward by n positions. skip(0) is equivalent to peek(). On overshoot, the cursor lands on the ender sentinel and FAILURE is returned.