1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 21:09:21 +00:00
comunicmobile/lib/utils/map_utils.dart

7 lines
171 B
Dart
Raw Normal View History

2020-05-01 13:39:54 +00:00
/// 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));