rangeTo

expect operator fun rangeTo(other: Byte): LongRange(source)
expect operator fun rangeTo(other: Short): LongRange(source)
expect operator fun rangeTo(other: Int): LongRange(source)
expect operator fun rangeTo(other: Long): LongRange(source)

Creates a range from this value to the specified other value.

Since Kotlin

1.0
actual operator fun rangeTo(other: Byte): LongRange(source)
actual operator fun rangeTo(other: Short): LongRange(source)
actual operator fun rangeTo(other: Int): LongRange(source)
actual operator fun rangeTo(other: Long): LongRange(source)

Creates a range from this value to the specified other value.

Since Kotlin

1.1
operator fun rangeTo(other: Byte): LongRange(source)
operator fun rangeTo(other: Short): LongRange(source)
operator fun rangeTo(other: Int): LongRange(source)
operator fun rangeTo(other: Long): LongRange(source)

Creates a range from this value to the specified other value.

Since Kotlin

1.0
actual operator fun rangeTo(other: Byte): LongRange(source)
actual operator fun rangeTo(other: Short): LongRange(source)
actual operator fun rangeTo(other: Int): LongRange(source)
actual operator fun rangeTo(other: Long): LongRange(source)

Creates a range from this value to the specified other value.

Since Kotlin

1.3
actual operator fun rangeTo(other: Byte): LongRange(source)
actual operator fun rangeTo(other: Short): LongRange(source)
actual operator fun rangeTo(other: Int): LongRange(source)
actual operator fun rangeTo(other: Long): LongRange(source)

Creates a range from this value to the specified other value.

Since Kotlin

1.8
actual operator fun rangeTo(other: Byte): LongRange(source)
actual operator fun rangeTo(other: Short): LongRange(source)
actual operator fun rangeTo(other: Int): LongRange(source)
actual operator fun rangeTo(other: Long): LongRange(source)

Creates a range from this value to the specified other value.

Since Kotlin

1.8