Use boolean
if you must return true
or false
from an expression.
Examples:
(if some-val true false) (if (some-func) true false)
(boolean some-val) (boolean (some-func))
Use `boolean` if you must return `true` or `false` from an expression. Examples: # bad (if some-val true false) (if (some-func) true false) # good (boolean some-val) (boolean (some-func))
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close