News for hackers. Stuff that matters.
Re:ClojureScript Koans: Learn ClojureScript from inside your... by jamii on Saturday November 23, 2013 @07:06AM (#6785779)
The `<` function only works on numbers but, unlike java, it will correctly coerce numbers with different representations.

    (< 1 ;; Long
       1.5 ;; Double
       2N ;; BigInt
       )
If you want java-style comparisons use `compare` instead.

EDIT: Ooops, this is cljs, not clojure. The correct answer is that string comparison is lexicographic in js:

    "is" < "length" < "word"

There are no comments on this comment yet.