mapFromPairs<K, V> function

Map<K, V> mapFromPairs<K, V>(
  1. Iterable<Tuple2<K, V>> pairs
)

Create a Map from a list of Tuple2s, which provides key/value pairs.

Implementation

Map<K, V> mapFromPairs<K, V>(Iterable<Tuple2<K, V>> pairs) =>
    {for (var t in pairs) t.item1: t.item2};