Function Entry: MAPCAR

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

Function Entry: MAPCAR

Name

mapcar

Class

Function

Syntax

(mapcar function list [list ...])

Arguments and Values

  • function: function designator
  • one or more lists

Description

Applies function element-wise across the supplied lists and returns a list of results.

Return Values

List of mapped results.

Side Effects

Side effects are those of applying the supplied function to the elements.

Exceptional Situations

Autodesk documents that the function must accept as many arguments as there are list arguments to mapcar.

Examples

  • (mapcar '1+ (list a b c)) => (11 21 31) in Autodesk's documented example context
  • (mapcar '(lambda (x) (+ x 3)) '(10 20 30)) => (13 23 33)

Compatibility

Closely tied to the semantics of function, lambda, and function-valued designators.

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.