SplitScript reference / ExclusiveRangeIterator
ExclusiveRangeIterator.next
Method
ExclusiveRangeIterator<T>.next() -> IteratorStep<T> where T: Integer
Advances to the next integer before the excluded endpoint.
The cursor returns End once its current value reaches the endpoint.
Effects: allocates, mutates the receiver
Runtime behavior: available everywhere; synchronous
Examples
Advance an exclusive-range cursor
let iterator = (1..<3).iterator()
let step = iterator.next()