mergeReduce

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

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