ClojureDocs

导航

命名空间

比较

clojure.core

自 1.0 起可用 (源代码)
  • (比较 x y)
Comparator. Returns a negative number, zero, or a positive number
when x is logically 'less than', 'equal to', or 'greater than'
y. Same as Java x.compareTo(y) except it also works for nil, and
compares numbers and collections in a type-independent manner. x
must implement Comparable