(compare a b)
compares any two values
(compare 1 :hello) => -1
(compare {:a 1} 3) => 1
compares any two values (compare 1 :hello) => -1 (compare {:a 1} 3) => 1
(compare-seqs compare xs ys)
compares two sequences
(compare-seqs compare [1 2 3] [4 5 6]) => -1
compares two sequences (compare-seqs compare [1 2 3] [4 5 6]) => -1
(type-priority x)
creates a compareed list of items in an uncompareed collection
(type-priority 1) => 3
(type-priority :hello) => 6
(type-priority {}) => 11
creates a compareed list of items in an uncompareed collection (type-priority 1) => 3 (type-priority :hello) => 6 (type-priority {}) => 11
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close