set! -- r7rs Definition syntax;
Syntax keywords:
variable: identifier;expression: expression;Syntax variants:
(_ variable expression)scheme:base -- (scheme base);scheme -- (scheme);(set! <variable> <expression>)Semantics:
<Expression>is evaluated, and the resulting value is stored in the location to which<variable>is bound. It is an error if<variable>is not bound either in some region enclosing theset!expression or else globally. The result of theset!expression is unspecified.(define x 2) (+ x 1) ===> 3 (set! x 4) ===> #unspecified (+ x 1) ===> 5
The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.