ToC DocOverview CGDoc RelNotes Index PermutedIndex
Allegro CL
Home Previous Up Next Table of Contents Index
  ANSI Common Lisp   3 Evaluation and Compilation   3.8 Dictionary Evaluation and Compilation

3.8.2 lambda Macro

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

Arguments and Values:
lambda-list - an ordinary lambda list.

declaration - a declare expression; not evaluated.

documentation - a string; not evaluated.

form - a form.

function - a function.

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}*)

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

See Also:
lambda (symbol)

This macro could be implemented by:

(defmacro lambda (&whole form &rest bvl-decls-and-body)
  (declare (ignore bvl-decls-and-body))

Allegro CL Implementation Details:

Home Previous Up Next Table of Contents Index
© Franz Inc. 1998-2017 - File last updated 01-11-2017