or -- r7rs Definition syntax;
Syntax keywords:
expression: expression;Syntax variants:
(_)(_ expression |...|)scheme:base -- (scheme base);scheme -- (scheme);(or <test_1> ...)Semantics: The
<test>expressions are evaluated from left to right, and the value of the first expression that evaluates to a true value (see section on booleans) is returned. Any remaining expressions are not evaluated. If all expressions evaluate to#for if there are no expressions, then#fis returned.(or (= 2 2) (> 2 1)) ===> #t (or (= 2 2) (< 2 1)) ===> #t (or #f #f #f) ===> #f (or (memq 'b '(a b c)) (/ 3 0)) ===> (b c)
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.