October 2018
Intermediate to advanced
370 pages
9h 15m
English
This function takes an argument to return the last elements of a list:
newList = numbers.takeLast(5)println("Take last 5 elements")println(newList)
The number.takeLast(5) function will return a list of the last five elements.
Read now
Unlock full access