stdlib
1.2
1.8
1.7
1.6
1.5
1.4
1.3
1.2
1.1
1.0
Common
JVM
JS
stdlib
/
kotlin
/
Short
/
rangeTo
range
To
Common
JVM
JS
operator
fun
rangeTo
(
other
:
Byte
)
:
IntRange
(
source
)
operator
fun
rangeTo
(
other
:
Short
)
:
IntRange
(
source
)
operator
fun
rangeTo
(
other
:
Int
)
:
IntRange
(
source
)
operator
fun
rangeTo
(
other
:
Long
)
:
LongRange
(
source
)
Creates a range from this value to the specified
other
value.
Since Kotlin
1.2
operator
fun
rangeTo
(
other
:
Byte
)
:
IntRange
(
source
)
operator
fun
rangeTo
(
other
:
Short
)
:
IntRange
(
source
)
operator
fun
rangeTo
(
other
:
Int
)
:
IntRange
(
source
)
operator
fun
rangeTo
(
other
:
Long
)
:
LongRange
(
source
)
Creates a range from this value to the specified
other
value.
Since Kotlin
1.0
operator
fun
rangeTo
(
other
:
Byte
)
:
IntRange
(
source
)
operator
fun
rangeTo
(
other
:
Short
)
:
IntRange
(
source
)
operator
fun
rangeTo
(
other
:
Int
)
:
IntRange
(
source
)
operator
fun
rangeTo
(
other
:
Long
)
:
LongRange
(
source
)
Creates a range from this value to the specified
other
value.
Since Kotlin
1.1