Is there a equivalent to the replaceAll { } functi...
# getting-started
d
Is there a equivalent to the replaceAll { } function on a ArrayList in Kotlin? (which mutates the array directly, when using for example a map { } I would have to assign the result back do the array or do a clear / addAll)
a
ferranis: Have you tried using
replaceAll { }
from jre8?
d
Had this beforehand and crashed my app with it (java 8 not enabled anymore) 😞
a
https://youtrack.jetbrains.com/issue/KT-2460 seems like its on the roadmap
d
Good to know, though it may take a while. The last update to it was last year. 😕