New function map_values/2.