Instance Property


The range’s upper bound.


let upperBound: Bound


In an empty range, upperBound is equal to lowerBound. A Range instance does not contain its upper bound.

See Also

Inspecting a Range

var isEmpty: Bool

A Boolean value indicating whether the range contains no elements.

var count: Int

The number of elements in the collection.

let lowerBound: Bound

The range’s lower bound.