putOrMerge

fun <K, V> MutableMap<K, V>.putOrMerge(key: K, value: V, reduceFunction: (V, V) -> V)

Similar to the java 8 Map#merge method.