isEmpty

open fun isEmpty(): Boolean(source)

Checks whether the range is empty.

The open-ended range is empty if its start value is greater than or equal to the end value.

Since Kotlin

1.9