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)
(progn statement1 statement2 ...)
Programming Overview of LISP (LISt Processing) Language
Bricscad™ is commercialized by Bricsys NV. Bricsys NV and Vondle NV are fully owned subsidiaries of Menhirs NV. © 2001- Menhirs NV - All rights reserved. |