IterableAssociateWith<E> extension

on

Methods

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

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

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