Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.