dropLast

The dropLast function ignores the last number of elements in the list:

newList = numbers.dropLast(5)
println("Drop last 5 elements")
println(newList)
..................Content has been hidden....................

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