The rangeTo function 

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.187.62