ArrayIter - mfichman/jogo GitHub Wiki

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'.

more?() Bool

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

@destroy()

No comment