associate<K, V> method
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);