Greetings,
Learning Scala currently (2.7.7) and needed to reverse a Map to do some reverse value->key lookups. I was looking for a simple way to do this, but came up with only:
(Map() ++ origMap.map(kvp=>(kvp._2->kvp._1)))
Anybody have a more elegant approach?