IterableAssociateBy<E> extension

on

Methods

associateBy<K>(K keySelector(E element)) Map<K, E>

Available on Iterable<E>, provided by the IterableAssociateBy extension

Returns a Map containing the elements from the collection indexed by the key returned from keySelector function applied to each element.