SplitScript reference / Iterator / next
Iterator.next
Method
T.next() -> IteratorStep<Item> where T: Iterator
Advances this cursor and returns either its next Item or End.
Repeated calls continue from the cursor's current position.
Effects: pure
Runtime behavior: available everywhere; synchronous
Examples
Read one iterator step
state "game.exe" {}
onAttach {
let iterator = (10..<12).iterator()
let first = iterator.next()
}