(lambda)

(lambda arguments expression ...)


Create a temporary, unnamed LISP function.


This function creates another function on-the-fly. It is used when setting all the overhead for a new function is unnecessary. The lambda function usually occurs in the middle of another function, and is often used with apply or mapcar to perform a function on a list.

Example

Code Returns
(apply '(lambda (a b c)
(+ a (* b c)))
'( 5 2 3))


11

Tell me about...

(command cmd [arguments] ...)

(defun [c:] name ([arg1 arg2 ...] / [local-var1 local-var2 ...]) expression)

(progn statement1 statement2 ...)

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language