Variable Definitions

Variable Definitions


syntax: (define var exp)
syntax: (define (var0 var1 ...) exp1 exp2 ...)
syntax: (define (var0 . varr) exp1 exp2 ...)
syntax: (define (var0 var1 var2 ... . varr) exp1 exp2 ...)
returns: unspecified


In the first form, define creates a new binding of var to the value of exp. The remaining are shorthand forms for binding variables to procedures.

They are identical to the following definition in terms of lambda:

(define var (lambda formals exp1 exp2 ...)) where formals is (var1 ...), varr, or (var1 var2 ... . varr) for the second, third, and fourth define formats.