Drop

Drop removes first n elements from the collection.

val numbers = listOf(1, 2, 3, 4, 5)
val dropped = numbers.drop(2)

The dropped list now contains [3, 4, 5].

..................Content has been hidden....................

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