mergeReduce

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

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

Sources

Katlib source
Link copied to clipboard