Associate<T> extension
- on
-
- Iterable<
T>
- Iterable<
Methods
-
associate<
K, V> (Pair< K, V> transform(T value)) → Map<K, V> -
Returns a
Map
containing key-value pairs that are provided bytransform
. -
associateBy<
K> (K keySelector(T value)) → Map< K, T> -
Returns a
Map
containing the elements indexed by the key fromkeySelector
. -
associateWith<
V> (V valueSelector(T value)) → Map< T, V> -
Returns a
Map
containing the elements paired with the value fromvalueSelector
.