Function Entry: CAR
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: CAR
Name
car
Class
Function
Syntax
(car lst)
Arguments and Values
lst: list
Description
Returns the first element of a list.
Return Values
The first element of lst.
If lst is the empty list, car returns nil.
Side Effects
None.
Exceptional Situations
Erroneous if lst is not accepted as a list by the implementation.
Examples
(car '(a b c)) => A(car '((a b) c)) => (A B)(car '()) => nil
Compatibility
Autodesk's dedicated page documents car for lists and explicitly documents empty-list behavior.
That page does not explicitly state dotted-pair behavior. Implementations may support (car '(a . b)) => A by Lisp tradition, but this specification treats dotted-pair acceptance by car as inferred or compatibility behavior until vendor evidence is collected.
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
- [car (AutoLISP)](https://help.autodesk.com/cloudhelp/2026/ENU/AutoCAD-AutoLISP-Reference/files/GUID-2DD1AF33-415C-4C1A-9631-DA958134C53A.htm)
- Status: documented for lists and empty-list behavior; dotted-pair behavior remains inferred.