CLCS
Macro

lambda

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

Arguments and Values

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

Description

Provides a shorthand notation for a function special form involving a lambda expression such that:

    (lambda lambda-list [[{declaration}* | documentation]] {form}*)
 ≡ (function (lambda lambda-list [[{declaration}* | documentation]] {form}*))
 ≡ #'(lambda lambda-list [[{declaration}* | documentation]] {form}*)

Examples

 (funcall (lambda (x) (+ x 3)) 4) ⇒  7

See Also

lambda (symbol)

Notes

This macro could be implemented by:

(defmacro lambda (&whole form &rest bvl-decls-and-body)
  (declare (ignore bvl-decls-and-body))
  `#',form)