(car list)


Get the first item of the list.


This function takes a list apart and returns the first element of the list. For example, if you had a list of points such as (1.0 2.0 3.0), the car function would return the first element of the list, or 1.0.

Example

Code Returns
(setq a '("first" "second" "third") ("first" "second" "third")
(setq b (car a)) "FIRST"

Tell me about...

(append list1 list2 ...)

(cdr list)

(cons item list)

(last list)

(length list)

(list expression )

(reverse list)

(setq symbol1 statement1 [symbol2 statement2] ...)

LISP Compatibility

Programming Overview of LISP (LISt Processing) Language