replaceAll

actual fun <T> MutableList<T>.replaceAll(transformation: (T) -> T)(source)

Replaces each element in the list with a result of a transformation specified.

Since Kotlin

1.3