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