R6RS:翻訳:R6RS:11.4.7 Sequencing

R6RS:翻訳:R6RS:11.4.7 Sequencing

11.4.7 直列化

[syntax] (begin <form> ...)

[syntax] (begin <expression> <expression> ...)

<begin> キーワードには文脈に応じてふたつの役割がある。

(define x 0)

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

(begin (display "4 plus 1 equals ")
       (display (+ 4 1)))              ⇒  unspecified
  and prints  4 plus 1 equals 5
More ...