associate<K, V> method

Map<K, V> associate<K, V>(
  1. (K, V) transform(
    1. E element
    )
)

Returns a Map containing key-value pairs provided by transform function applied to elements of the given List.

Implementation

Map<K, V> associate<K, V>((K, V) Function(E element) transform) =>
    associateTo(<K, V>{}, transform);