This question popped up several times: How to sequence instructions in Scheme? To do so, use the begin
The above doesn't do much but it evaluates to 1, the value of x
after the set!
. (Note that the value of x
is now 2 even outside the begin