The rangeTo function is equivalent to the two-dot operator:
val myRange1 = 1..10
val myRange2 = 1.rangeTo(10)
println(myRange2)
The rangeTo function creates a range of integers up to a specified value.
The rangeTo function is equivalent to the two-dot operator:
val myRange1 = 1..10
val myRange2 = 1.rangeTo(10)
println(myRange2)
The rangeTo function creates a range of integers up to a specified value.
18.117.187.62