begin

(begin <expression1> <expression2> ...)


Description:

The <expression>s are evaluated sequentially from left to right, and the

value(s) of the last <expression> is(are) returned.  This expression

type is used to sequence side effects such as input and output.


Arguments:


Returns: boolean


Examples:

(define x 0)


(begin (set! x 5)

       (+ x 1))                  =>  6


(begin (print "4 plus 1 equals ")

       (print (+ 4 1)))        -|  4 plus 1 equals 5

                                 =>  unspecified



Back to index