associate<K, V> method

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

Returns a Map containing MapEntrys provided by transform function applied to elements of the given collection.

Implementation

Map<K, V> associate<K, V>(MapEntry<K, V> Function(E element) transfrom) =>
    Map.fromEntries(map(transfrom));