Instance Property

upperBound

The range’s upper bound.

Declaration

let upperBound: Bound

Discussion

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.