withReplaced

fun <T> Iterable<T>.withReplaced(t: T, block: (T) -> T): List<T>(source)