ClojureDocs

Nav

Namespaces

boolean?

clojure.core

Available since 1.9 (source)
  • (boolean? x)
Return true if x is a Boolean
1 Example
(boolean? true)
;;=> true
(boolean? false)
;;=> true
(boolean? (new Boolean "true"))
;;=> true
(boolean? (new Boolean "false"))
;;=> true

(boolean? nil)
;;=> false
See Also

Returns true if x is the value true, false otherwise.

Added by vspinu
0 Notes
No notes for boolean?