SplitScript reference / ArrayIterator
ArrayIterator.next
Method
ArrayIterator<T>.next() -> IteratorStep<T>
Advances to the next array element.
Structural array mutation invalidates this cursor.
Effects: allocates, mutates the receiver
Runtime behavior: available everywhere; synchronous
Examples
Advance an array cursor
let iterator = [10, 20].iterator()
let step = iterator.next()