I looking for an on-the-shelf way to convert a List into a Map in Dart.
In python for example you can do:
l= [ (\'a\',(1,2)), (\'b\'
In Dart 1.1, you can use this constructor of Map:
new Map.fromIterable(list, key: (v) => v[0], value: (v) => v[1]);
This would be closest to your original proposal.