kotlin / 1.6.20 / api / latest / jvm / stdlib / kotlin.collections / replace-all.html /

replaceAll

Platform and version requirements: Native (1.3)
fun <T> MutableList<T>.replaceAll(transformation: (T) -> T)

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

© 2010–2022 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/replace-all.html