That's more likely a bug in the documentation that in the compare
function.
On Apr 11, 4:09 pm, fft1976 wrote:
> user=> (doc compare)
> -
> clojure.core/compare
> ([x y])
> Comparator. Returns 0 if x equals y, -1 if x is logically 'less
> than' y, else 1. Same as Java
user=> (doc compare)
-
clojure.core/compare
([x y])
Comparator. Returns 0 if x equals y, -1 if x is logically 'less
than' y, else 1. Same as Java x.compareTo(y) except it also works
for nil, and compares numbers and collections in a type-independent
manner. x must i