Contents

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.

See Also

Inspecting a Range