collectMap

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


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

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