[WASM] Internalize MutableList.replaceAll function

It will be introduced later in Common: KT-57152.
This commit is contained in:
Abduqodiri Qurbonzoda
2023-04-19 20:24:40 +03:00
committed by Space Team
parent 954e11c265
commit c6eaadb44f
@@ -8,7 +8,7 @@ package kotlin.collections
/**
* Replaces each element in the list with a result of a transformation specified.
*/
public fun <T> MutableList<T>.replaceAll(transformation: (T) -> T) {
internal fun <T> MutableList<T>.replaceAll(transformation: (T) -> T) {
val it = listIterator()
while (it.hasNext()) {
val element = it.next()