Function Entry: APPLY

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: APPLY

Name

apply

Class

Function

Syntax

(apply 'function list)

Arguments and Values

  • 'function: a symbol (defun name) or a lambda expression.
  • list: a list of arguments, or nil if the function takes no arguments.

Description

Passes a list of arguments to, and executes, the specified function. The function may be a built-in operator, a user-defined function, or a lambda expression.

Return Values

Returns whatever the called function returns: integer, real, string, list, ename, T, or nil.

Side Effects

Side effects are those of the called function.

Examples

  • (apply '+ '(1 2 3)) returns 6.
  • (apply 'strcat '("a" "b" "c")) returns "abc".

Availability

  • AutoCAD 2026: documented.
  • BricsCAD V26: presumed compatible (no contradicting page found).
  • Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.