withReplacedAt

fun <T> Iterable<T>.withReplacedAt(i: Int, block: (T) -> T): List<T>(source)