[WASM] Internalize MutableList.replaceAll function
It will be introduced later in Common: KT-57152.
This commit is contained in:
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()
|
||||
|
||||
Reference in New Issue
Block a user