truncate

fun <T> MutableList<T>.truncate(newSize: Int)