Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chadtech/unique-list
A type to arrange things in order
https://github.com/chadtech/unique-list
elm list set
Last synced: about 2 months ago
JSON representation
A type to arrange things in order
- Host: GitHub
- URL: https://github.com/chadtech/unique-list
- Owner: Chadtech
- License: other
- Created: 2017-08-26T08:10:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-25T19:50:01.000Z (over 3 years ago)
- Last Synced: 2024-04-15T01:18:11.775Z (8 months ago)
- Topics: elm, list, set
- Language: Elm
- Homepage: http://package.elm-lang.org/packages/Chadtech/unique-list/latest
- Size: 30.3 KB
- Stars: 2
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UniqueList
Create ordered lists with unique elements.
`UniqueList` is similar to `Set`, but with two major differences:
+ The underlying type of a `UniqueList` need not be `comparable`.
+ Elements can be ordered, like a regular list.## Notes
UniqueList works using equality checks internally. That means your code will break if you use a type that cannot be equated using `==`. This includes functions and json (`Json.Encode.Value` and `Json.Decode.Value`).
## Contributing
If you think this package could be improved, let me know by opening
an [issue](https://github.com/Chadtech/unique-list/issues/new)
or a [pull request](https://github.com/Chadtech/unique-list).