louiscad
val newList = list.minusIndex(i)
fun<E> List<E>.minusIndex(index: Int) = subList(0, index) + subList(index + 1, size)