merge

fun <K, V : Any> Iterable<Map<K, V>>.merge(): Map<K, List<V>>

For each key, merges all the values into one common list.

Sources

Katlib source
Link copied to clipboard