This function returns an element at a specified index:
val myRange = 1..10
println("Element at index 1 =" + myRange.elementAt(1))
The myRange index starts from 0, so elementAt(0) will return 1 and elementAt(1) will return 2.
This function returns an element at a specified index:
val myRange = 1..10
println("Element at index 1 =" + myRange.elementAt(1))
The myRange index starts from 0, so elementAt(0) will return 1 and elementAt(1) will return 2.
18.222.182.66