collectMap

open fun <K, V> collectMap(destination: Map<K, V>, items: Iterable<out V>, keyGenerator: Transformer<out K, in V>)


open fun <K, V> collectMap(items: Iterable<out V>, keyGenerator: Transformer<out K, in V>): Map<K, V>

Given a set of values, derive a set of keys and return a map