October 2018
Intermediate to advanced
370 pages
9h 15m
English
The dropWhile function accepts a lambda expression. This function keeps ignoring the elements until the condition is satisfied and returns a new list as a result:
newList = numbers.dropWhile { it < 5 }println("Drop from beginning : while element is less than 5")println(newList)
Read now
Unlock full access