Skip to content

ArrayIterator

1 min read

No import is needed.

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

ArrayIterator

Cursor produced by T[].iterator() when an array participates as Collection / IndexedCollection. Concrete for (let x in arr) still uses the native index loop.

public class ArrayIterator<T>: Iterator<T>

next

Returns the next element, or None if exhausted.

public fun next(): Option<T>