MyUtilityExtensionIterableAssociateBy<E> extension

on

Methods

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

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

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