Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dustinspecker/dict-key-values
Swap the key value pairs of a Dict
https://github.com/dustinspecker/dict-key-values
Last synced: 2 days 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 8 years ago)
- Default Branch: master
- Last Pushed: 2016-03-11T22:26:53.000Z (over 8 years ago)
- Last Synced: 2023-08-08T20:39:09.453Z (over 1 year 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 [![Build Status](https://travis-ci.org/dustinspecker/dict-key-values.svg?branch=master)](https://travis-ci.org/dustinspecker/dict-key-values) [![Elm Docs](https://img.shields.io/badge/elm-docs-brightgreen.svg)](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)