merge

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

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