ArrayIterator

ArrayIterator: ArrayIterator, hasValue, value, increment, toList

struct ArrayIterator<Element>: Copyable, Iterator<Element&>

Iterates over the elements of an array.

ArrayIterator

ArrayIterator(Element[] array)

Initializes an iterator over the given array.

hasValue

bool hasValue()

Returns true if there are more elements.

value

Element& value()

Returns the current element.

increment

void increment()

Advances to the next element.

toList

List<Element> toList()

Collects the remaining elements into a list.