[Haskell-cafe] Data.Map: Values to keys and keys to values

Dmitri O.Kondratiev 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.
Something like:
transMap:: (Ord k, Ord a) => Map k a -> Map a k

Does such function exist?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110616/0aa0ffc3/attachment.htm>

More information about the Haskell-Cafe mailing list