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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |