Solution to the Reversing the Values in a Map Challenge


#1
fun flipValues(values: Map<String, Double>): Map<Double, String> {
    return values.map { it.value to it.key }.toMap()
}