replaceAt

fun <T> List<T>.replaceAt(idx: Int, new: T): List<T>