rangeUntil

Creates a range from this value up to but excluding the specified other value.

If the other value is less than or equal to this value, then the returned range is empty.

Since Kotlin

1.7
@ExperimentalStdlibApi
operator fun rangeUntil(other: Byte): IntRange(source)
@ExperimentalStdlibApi
operator fun rangeUntil(other: Short): IntRange(source)
@ExperimentalStdlibApi
operator fun rangeUntil(other: Int): IntRange(source)
@ExperimentalStdlibApi
operator fun rangeUntil(other: Long): LongRange(source)

Creates a range from this value up to but excluding the specified other value.

If the other value is less than or equal to this value, then the returned range is empty.

Since Kotlin

1.7
@ExperimentalStdlibApi
operator fun rangeUntil(other: Byte): IntRange(source)
@ExperimentalStdlibApi
operator fun rangeUntil(other: Short): IntRange(source)
@ExperimentalStdlibApi
operator fun rangeUntil(other: Int): IntRange(source)
@ExperimentalStdlibApi
operator fun rangeUntil(other: Long): LongRange(source)

Creates a range from this value up to but excluding the specified other value.

If the other value is less than or equal to this value, then the returned range is empty.

Since Kotlin

1.7
@ExperimentalStdlibApi
operator fun rangeUntil(other: Byte): IntRange(source)
@ExperimentalStdlibApi
operator fun rangeUntil(other: Short): IntRange(source)
@ExperimentalStdlibApi
operator fun rangeUntil(other: Int): IntRange(source)
@ExperimentalStdlibApi
operator fun rangeUntil(other: Long): LongRange(source)

Creates a range from this value up to but excluding the specified other value.

If the other value is less than or equal to this value, then the returned range is empty.

Since Kotlin

1.7