dropInPlace

fun <T> List<T>.dropInPlace(n: Int): List<T>(source)

Returns a sublist containing all elements except first n elements. The sublist is a view into the original list. Changes in the original list will be reflected in the sublist.

Return

A list containing all elements except first n elements.

Parameters

n

The number of elements to drop from the beginning.