1.1 define
(define (id id id ...) expr) |
Defines a function. The first id inside the parentheses is
the name of the function. All remaining ids are the names of
the function’s arguments. The expr is the body of the
function, evaluated whenever the function is called. The name of the
function cannot be that of a primitive or another definition.
(define id expr) |
Defines a constant id as a synonym for the value produced by
expr. The defined name cannot be that of a primitive or
another definition, and id itself must not appear in
expr.
An alternate form for defining functions. The first id is the
name of the function. The ids in parentheses are the names of
the function’s arguments, and the expr is the body of the
function, which evaluated whenever the function is called. The name
of the function cannot be that of a primitive or another definition.