Associate<T> extension

on

Methods

associate<K, V>(Pair<K, V> transform(T value)) Map<K, V>
Returns a Map containing key-value pairs that are provided by transform.
associateBy<K>(K keySelector(T value)) Map<K, T>
Returns a Map containing the elements indexed by the key from keySelector.
associateWith<V>(V valueSelector(T value)) Map<T, V>
Returns a Map containing the elements paired with the value from valueSelector.