I see that we are missing `Map.merge` function in ...
# stdlib
m
I see that we are missing
Map.merge
function in Kotlin: https://docs.oracle.com/javase/8/docs/api/java/util/Map.html#merge-K-V-java.util.function.BiFunction- I can easily add it using extension function. PR?
s
are we missing it? I thought it was just provided on
MutableMap
instead
m
Well, but it cannot be used on immutable maps
s
I don’t get it, isn’t
.merge()
a mutating method?
1
m
Well, we can have a version for immutable. Like
marged
or
margedWith