delay -- r7rs Definition syntax;
Syntax keywords:
expression: expression;Syntax variants:
(_ expression)scheme:lazy -- (scheme lazy);scheme -- (scheme);(delay <expression>)Semantics: The
delayconstruct is used together with the procedureforceto implement lazy evaluation or call by need.(delay <expression>)returns an object called a promise which at some point in the future can be asked (by theforceprocedure) to evaluate<expression>, and deliver the resulting value. The effect of<expression>returning multiple values is unspecified.
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.