Special Form Entry: LAMBDA
← Prev | ↑ Chapter | Next → | Index | Symbols
Special Form Entry: LAMBDA
Name
lambda
Class
Special Form
Syntax
(lambda ([arguments] [/ locals ...]) expr ...)
Arguments and Values
- AutoLISP parameter and local syntax
- body expressions
Description
Creates an anonymous function object.
Evaluation Rules
The body expressions are not evaluated at lambda-creation time. They are evaluated when the resulting function is invoked.
Return Values
Returns an anonymous callable object.
Side Effects
None at creation time, apart from effects of malformed usage signaling errors.
Exceptional Situations
Malformed parameter/local syntax is erroneous.
Examples
- use in functional position
- use with
functionin mapped or callback contexts
Compatibility
Autodesk classifies lambda as a special form.
Notes
The exact object model of the resulting anonymous function is not formally specified in the vendor documentation sampled here.
Availability
- AutoCAD 2026: documented (per Autodesk reference page).
- BricsCAD V26: presumed compatible (no contradicting page found).
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.
Source Notes
- [About Special Forms (AutoLISP)](https://help.autodesk.com/cloudhelp/2017/ENU/AutoCAD-AutoLISP/files/GUID-F992EAA3-AFFC-425D-B7C9-6A9CB0EA2768.htm)
- Status: documented as a special form; detailed semantics partly inferred.