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

SplitScript reference / ExclusiveRangeIterator / next

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