SplitScript reference / T..<T

T..<T

type constructor

T where Integer..<T where Integer

Represents an integer interval whose upper bound is excluded.

Use ..< when the value at end must not be visited. Range bounds are immutable, and a range whose end precedes its start is empty.

Examples

Visit array indices

let values = ["health", "mana"]
for index in 0..<values.length() {
    print(values[index])
}

Methods

MemberDescriptionAvailable through
containsReports whether a value belongs to this range.
isEmptyReports whether this range contains no values.
iteratorCreates a cursor starting at this range's included lower endpoint.