SplitScript reference / T..=T / iterator

T..=T.iterator

Method

T..=T.iterator() -> InclusiveRangeIterator<T> where T: Integer

Creates a cursor starting at this range's included lower endpoint.

The range value remains available and unchanged.

Effects: allocates

Runtime behavior: available everywhere; synchronous

Examples

Create an inclusive-range cursor

let iterator = (1..=4).iterator()