Liking cljdoc? Tell your friends :D
All platforms.

me.lomin.sinho.rank

A total-ordering comparator for Clojure values, after mvxcvi/arrangement 2.1.0's arrangement.core/rank (public domain), with a ClojureDart branch.

A total-ordering comparator for Clojure values, after mvxcvi/arrangement
2.1.0's `arrangement.core/rank` (public domain), with a ClojureDart branch.
raw docstring

rankclj/s

(rank a b)

Comparator giving a total order of EDN values: by type, then by value.

Values of different types sort in order of their types, per type-priority. false is before true, numbers are ordered by magnitude regardless of type, and characters, strings, keywords, and symbols are ordered lexically. Sequential collections are sorted by comparing their elements one at a time; with equal leading elements, the longer one is ordered later. Sets and maps are compared by cardinality first, then elements in sorted order. All other types are sorted by type name, then by compare if comparable, else by print representation.

Comparator giving a total order of EDN values: by type, then by value.

Values of different types sort in order of their types, per `type-priority`.
`false` is before `true`, numbers are ordered by magnitude regardless of
type, and characters, strings, keywords, and symbols are ordered lexically.
Sequential collections are sorted by comparing their elements one at a time;
with equal leading elements, the longer one is ordered later. Sets and maps
are compared by cardinality first, then elements in sorted order. All other
types are sorted by type name, then by `compare` if comparable, else by
print representation.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close