SplitScript reference / T..<T / iterator

T..<T.iterator

Method

T..<T.iterator() -> ExclusiveRangeIterator<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 exclusive-range cursor

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