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 function in 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