Skip to content

clojure.core/or

View this page on ClojureDocs

Type: macro Added: Clojure 1.0 Examples: 6 Runnable: 2
([] [x] [x & next])

Evaluates exprs one at a time, from left to right. If a form returns a logical true value, or returns that value and doesn't evaluate any of the other expressions, otherwise it returns the value of the last expression. (or) returns nil.

Examples

by dakrone on . May have evaluation errors.
by jafingerhut on
by ertugrulcetin on
by caumond on . May have evaluation errors.
by luiszambon on . May have evaluation errors.
by tomdl89 on . May have evaluation errors.

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.