October 2018
Intermediate to advanced
370 pages
9h 15m
English
This function returns an element at a specified index:
val myRange = 1..10println("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.
Read now
Unlock full access