drop
Returns a list containing all elements except first n elements.
fun <T> Array<out T>.drop(n: Int): List<T>(source)
fun main() {
val array = arrayOf(1, 2, 3, 4, 5)
val dropped = array.drop(2) // removes the first 2 elements
println(dropped) // prints: [3, 4, 5]
}