mergeReduceTo

inline fun <K, V, M : MutableMap<K, V>> Map<K, V>.mergeReduceTo(destination: M, other: Map<K, V>, reduce: (V, V) -> V = { a, _ -> a }): M(source)

Merges two maps together using the given reduce function into the given destination. By default, the reduce function keeps the value from this map.