Swap the key value pairs of a Dict
elm-package install dustinspecker/dict-key-values
module AwesomeModule where
import Dict
import DictKeyValues
people =
Dict.fromList [ ("Bob", 3), ("Jan", 7) ]
DictKeyValues.swap people -- Dict.fromList [ (3, "Bob"), (7, "Jan") ]
MIT © Dustin Specker