Skip to content
Matt Fichman edited this page Dec 20, 2012 · 8 revisions

This iterator returns each of the elements in the queue it points to in sequence, from the first element in the queue (i.e., the next to be dequeued) to the last element in the queue.

@init(coll Queue[:a])

Initializes the iterator. The iterator will iterate over the items in 'coll.'

Returns true if there are more elements in the queue.

next() :a

Returns the next element in the array, or nil if there are no more elements.

No comment

Clone this wiki locally