mapKeyValue<K, V> method
Maps a key and value to a pair with the desired natural order.
Pairs will be ordered according to their compareTo
method, i.e. first on
value, then on key.
Implementation
Pair mapKeyValue<K, V>(Comparable key, dynamic value) =>
Pair(key, mapValue(value));