when -- r7rs Definition syntax;
Syntax keywords:
condition: expression;then-expression: expression;Syntax variants:
(_ condition then-expression |...|)scheme:base -- (scheme base);scheme -- (scheme);(when <test> <expression_1> <expression_2> ...)Syntax: The
<test>is an expression.Semantics: The test is evaluated, and if it evaluates to a true value, the expressions are evaluated in order. The result of the
whenexpression is unspecified.(when (= 1 1.0) (display "1") (display "2")) ===> #unspecified ; and prints: 12
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.