In a collection of pairs, map a function over the first item of each pair.
In a collection of pairs, map a function over the first item of each pair. Ensures that the map is computed at call-time, and not returned as a view as 'Map.mapValues' would do.
function to map over the first item of each pair
a collection of pairs