removeRange

fun removeRange(fromIndex: Int, toIndex: Int)

Removes from this list all the elements with indexes between fromIndex, inclusive, and toIndex, exclusive.