mvxcvi/arrangement

Total-order comparator for Clojure(Script).


Keywords
sorting
License
Unlicense

Documentation

Arrangement

Circle CI codecov.io API codox

A micro-library which provides a total-ordering comparator for Clojure values.

Usage

Library releases are published on Clojars. To use the latest version with Leiningen, add the following dependency to your project definition:

Clojars Project

In your code:

=> (require '[arrangement.core :as order])

=> (sort order/rank
         ['a false 2 :b nil 3.14159 "c" true \d [3 2] #{:one :two} [3 1 2] #{:three}])
[nil false true 2 3.14159 \d "c" :b a [3 1 2] [3 2] #{:three} #{:one :two}]

License

This is free and unencumbered software released into the public domain. See the UNLICENSE file for more information.