[Haskell-cafe] Data.Map: Values to keys and keys to values
dokondr at gmail.com
Thu Jun 16 15:01:27 CEST 2011
Data.Map has many great functions, yet I could not find the one that allows
from one map create another map where keys are values and values are keys of
the first one.
transMap:: (Ord k, Ord a) => Map k a -> Map a k
Does such function exist?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe