`myMap.mapValuesTo(myMap) { ... }` might work, nev...
# stdlib
k
myMap.mapValuesTo(myMap) { ... }
might work, never tried it before.
m
I just tried this.
myMap.mapValuesTo(myMap) { ... }
works.
k
Oops, that's what I meant, thanks for correcting me and testing ☺️.
m
I thought I would get a
ConcurrentModificationException
, but I didn't.
You aren't changing any keys, so I guess that's why it isn't thrown.
k
@dimsuz
👍 1