CS 3304: Comparative Languages
FP Foundations, Scheme
[
Course Documents
] : [
FP Foundations, Scheme
]
Previous
Contents
Next
Keyword Index
Lambda Expressions
A lambda expression describes a "nameless" function
Specifies both the parameter(s) and the mapping
Consider this function:
cube (x) = x * x * x
Corresponding lambda expr:
(x) x * x * x
Can be "applied" to parameter(s) by placing the parameter(s) after the expression
(
(x) x * x * x)(3)
The above application evaluates to 27