Instance Propertyswift 6.1.2Swift

isEmpty

A Boolean value indicating whether the range contains no elements.

var isEmpty: Bool { get }

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