drop

fun <T> Array<out T>.drop(n: Int): List<T> (source)
fun ByteArray.drop(n: Int): List<Byte> (source)
fun ShortArray.drop(n: Int): List<Short> (source)
fun IntArray.drop(n: Int): List<Int> (source)
fun LongArray.drop(n: Int): List<Long> (source)
fun FloatArray.drop(n: Int): List<Float> (source)
fun DoubleArray.drop(n: Int): List<Double> (source)
fun BooleanArray.drop(n: Int): List<Boolean> (source)
fun CharArray.drop(n: Int): List<Char> (source)
fun <T> Iterable<T>.drop(n: Int): List<T> (source)

Returns a list containing all elements except first n elements.

import kotlin.test.*

fun main(args: Array<String>) {
//sampleStart
val chars = ('a'..'z').toList()
println(chars.drop(23)) // [x, y, z]
println(chars.dropLast(23)) // [a, b, c]
println(chars.dropWhile { it < 'x' }) // [x, y, z]
println(chars.dropLastWhile { it > 'c' }) // [a, b, c]
//sampleEnd
}