Instance Propertyswift 6.0.3Swift
isEmpty
A Boolean value indicating whether the range contains no elements.
var isEmpty: Bool { get }
An empty Range
instance has equal lower and upper bounds.
let empty: Range = 10..<10
print(empty.isEmpty)
// Prints "true"