car


(car  lst)

This function returns the first element of lst.

Arguments

lst  any list or DottedPair, empty list (NIL) is also allowed

Return

the first element of the list, or NIL (for an empty list)

Example

(setq lst '(11 22 33))
(car lst)  11

Remarks

often used to retrieve the X coordinate of a 2d / 3d point list;
(car) and (cdr) function combinations are supported for up to 4 levels, see car / cdr family



©  Bricsys NV. All rights reserved.