CLCS
Symbol

lambda

Syntax

lambda lambda-list [[{declaration}* | documentation]] {form}*

Arguments

lambda-listan ordinary lambda list.
declarationa declare expression; not evaluated.
documentationa string; not evaluated.
forma form.

Description

A lambda expression is a list that can be used in place of a function name in certain contexts to denote a function by directly describing its behavior rather than indirectly by referring to the name of an established function.

Documentation is attached to the denoted function (if any is actually created) as a documentation string.

Notes

The lambda form

 ((lambda lambda-list . body) . arguments)

is semantically equivalent to the function form

 (funcall #'(lambda lambda-list . body) . arguments)