replace

fun replace(i: Int, new: T)
fun replace(old: T, new: T): Boolean