A half-open interval over a comparable type, from a lower bound up to, but not including, an upper bound.
- Xcode 6.0.1+
- Swift Standard Library
Range instances by using the half-open range operator (
You can use a
Range instance to quickly check if a value is contained in a particular range of values. For example:
Range instances can represent an empty interval, unlike