car

AutoCad AutoLISP Functions

 
car
 
 
 

Returns the first element of a list

(car list)

Arguments

list

A list.

Return Values

The first element in list; otherwise nil, if the list is empty.

Examples

Command: (car '(a b c))

A

Command: (car '((a b) c))

(A B)

Command: (car '())

nil

See Also
    • The Point Lists topic in the AutoLISP Developer's Guide.