Skip to main content

cond

macrov1.0

clojure.core/cond

Available in:BBCLJCLJS
(cond [& clauses])
Takes a set of test/expr pairs. It evaluates each test one at a time. If a test returns logical true, cond evaluates and returns the value of the corresponding expr and doesn't evaluate any of the other tests or exprs. (cond) returns nil.

No examples yet. Be the first to add one!