mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-30 00:36:28 +00:00
7 lines
171 B
Dart
7 lines
171 B
Dart
|
/// Map utilities
|
||
|
///
|
||
|
/// @author Pierre HUBERT
|
||
|
|
||
|
/// Invert the values of a map with their keys
|
||
|
Map<V, K> invertMap<K, V>(Map<K, V> m) => m.map((k, v) => MapEntry(v, k));
|