What is the best way to turn a Map[A, Set[B]] into a Map[B, Set[A]]?
Map[A, Set[B]]
Map[B, Set[A]]
For example, how do I turn a
Map(1 -> Set(\"a\", \"b\")