Instance Propertyswift 6.0.1Swift
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
.
Other members in extension
Type members
static func == (lhs: ClosedRange<Bound>, rhs: ClosedRange<Bound>
) -> Bool Returns a Boolean value indicating whether two ranges are equal.
Instance members
var customMirror: Mirror
var debugDescription: String
A textual representation of the range, suitable for debugging.
var description: String
A textual representation of the range.
func clamped(to: ClosedRange<Bound>
) -> ClosedRange<Bound> Returns a copy of this range clamped to the given limiting range.
func contains(Bound
) -> Bool Returns a Boolean value indicating whether the given element is contained within the range.
func overlaps(ClosedRange<Bound>
) -> Bool func overlaps(Range<Bound>
) -> Bool func relative<C>(to: C
) -> Range<Bound>