https://github.com/dustinspecker/dict-key-values
Swap the key value pairs of a Dict
https://github.com/dustinspecker/dict-key-values
Last synced: 3 months ago
JSON representation
Swap the key value pairs of a Dict
- Host: GitHub
- URL: https://github.com/dustinspecker/dict-key-values
- Owner: dustinspecker
- License: mit
- Created: 2016-03-05T17:32:06.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-11T22:26:53.000Z (over 9 years ago)
- Last Synced: 2025-02-16T09:26:43.970Z (5 months ago)
- Language: Elm
- Homepage:
- Size: 2.93 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# DictKeyValues [](https://travis-ci.org/dustinspecker/dict-key-values) [](http://package.elm-lang.org/packages/dustinspecker/dict-key-values/latest)
> Swap the key value pairs of a Dict## Install
```bash
elm-package install dustinspecker/dict-key-values
```## Usage
```elm
module AwesomeModule whereimport Dict
import DictKeyValuespeople =
Dict.fromList [ ("Bob", 3), ("Jan", 7) ]DictKeyValues.swap people -- Dict.fromList [ (3, "Bob"), (7, "Jan") ]
```## License
MIT © [Dustin Specker](https://github.com/dustinspecker)