Instance Property

isEmpty

A Boolean value indicating whether the range contains no elements.

Declaration

var isEmpty: Bool { get }

Discussion

Because a closed range cannot represent an empty range, this property is always false.

Relationships

From Protocol

See Also

Inspecting a Range

var count: Int

The number of elements in the collection.

let lowerBound: Bound

The range’s lower bound.

let upperBound: Bound

The range’s upper bound.