Skip to main content

assert

macrov1.0

clojure.core/assert

Available in:BBCLJCLJS
(assert [x] [x message])
Evaluates expression x and throws an AssertionError with optional message if x does not evaluate to logical true. Assertion checks are omitted from compiled code if '*assert*' is false.

No examples yet. Be the first to add one!