Previous: , Up: baselib expressions   [Index]


4.4.7 Sequencing

Syntax: begin ?form
Syntax: begin ?expression ?expression

The ?begin keyword has two different roles, depending on its context:

(define x 0)

(begin (set! x 5)
       (+ x 1))
⇒  6

(begin (display "4 plus 1 equals ")
       (display (+ 4 1)))
⇒ unspecified
-| 4 plus 1 equals 5