Skip to documentation
SplitScript
  • Language
  • Standard library
  • Guides
  • Migration

SplitScript reference / ArrayIterator / next

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()
Generated from the SplitScript compiler's documentation catalogs.