|
|
|
|
|
by jamii
4588 days ago
|
|
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"
|
|