map/invert_map library

Functions

invertMap<K, V>(Map<K, V> map) Map<V, K>
Inverts a map by swapping keys and values. If duplicate values exist, later keys overwrite earlier ones.