< Common Lisp < Reference
car, along with cdr, is one of the basic building blocks of Common Lisp which are used to build cons cells.
The car operator, when applied to a list, returns the first element of that list. For example:
(car (list 1 2 3 4 5))
1
It can be replaced by first function [1] :
(first (list 1 2 3 4 5))
1
References
See also
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.