MyUtilityExtensionIterableAssociateWith<E> extension

on

Methods

associateWith<V>(V valueSelector(int index, E element)) Map<E, V>

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

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