Scheme supports boolean?
to test whether a symbol or value is of boolean type.
(boolean? #\t)
(boolean? #\f)
While in Clojure, I can only found integer?
, number?
, list?
, etc but without boolean?
.
What is the equivalent of boolean?
in Clojure?
true
is not the only true value, andfalse
is not the only false value. You probably know that. This is just a warning to newbies reading this later.