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
| Member | Description | Available through |
|---|---|---|
| contains | Reports whether a value belongs to this range. | |
| isEmpty | Reports whether this range contains no values. | |
| iterator | Creates a cursor starting at this range's included lower endpoint. |