previous
|
index
|
next
Lambda Expressions
A lambda expression is a parenthesized expression with three parts:
(lambda
parameter_list
body
)
lambda
: a word to let Scheme know a procedure is being specified
parameter_list
: list of names of parameters used in the body
body
: expression specifying what the procedure does
Example:
(lambda (x) (* x x))
squares a number
previous
|
index
|
next