2 ms·
Clojure has a nice way of achieving (5 < x && x < 10) This is a nice way of expressing "x is between 5 and 10" because it is literally between 5 and 10.
by jamesbrennan 8y ago
Clojure has a nice way of achieving
(5 < x && x < 10)
This is a nice way of expressing "x is between 5 and 10"
because it is literally between 5 and 10.
which is that the < function can take any number of arguments:
(< 5 x 10)
https://clojuredocs.org/clojure.core/%3C https://clojuredocs.org/clojure.core/%3C