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

This iterator returns each of the elements in the array it points to in sequence. The iterator makes no guarantee on ordering if the array is modified during iteration, but the iteration is guaranteed to terminate and will not result in a fault.

@init(coll Array[:a])

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

Returns true if there are more elements in the array.

next() :a

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

item?() :a

No comment

Clone this wiki locally