(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...
(defun [c:] name ([arg1 arg2 ...] / [local-var1 local-var2 ...]) expression)
en
italiano
čeština
Deutsch
français
hrvatski
magyar
polski
српски
русский
中文
中文
한국어
español