Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noredink/elm-compare
Tools for composing comparison functions
https://github.com/noredink/elm-compare
Last synced: about 2 months ago
JSON representation
Tools for composing comparison functions
- Host: GitHub
- URL: https://github.com/noredink/elm-compare
- Owner: NoRedInk
- License: bsd-3-clause
- Created: 2017-07-07T10:09:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-30T20:30:49.000Z (over 6 years ago)
- Last Synced: 2024-05-08T23:25:04.671Z (8 months ago)
- Language: Elm
- Homepage: http://package.elm-lang.org/packages/NoRedInk/elm-compare/latest
- Size: 17.6 KB
- Stars: 4
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tools for composing comparison functions
Some types like strings and numbers are comparable in Elm by default. Elm has built in functions like `List.sort`, `List.minimum`, `List.maximum`, `Basics.min`, and `Basics.max` that make use of the possiblity to compare them.
For performing these operations on your own types you'll need to write a custom comparison function. This library contains some tools for building and using such comparison functions.