| www.delorie.com/gnu/docs/emacs-lisp-intro/emacs-lisp-intro_110.html | search |
![]() Buy the book! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
car, cdr, cons: Fundamental Functions
In Lisp, car, cdr, and cons are fundamental
functions. The cons function is used to construct lists, and
the car and cdr functions are used to take them apart.
In the walk through of the copy-region-as-kill function, we
will see cons as well as two variants on cdr,
namely, setcdr and nthcdr. (See section 8.5 copy-region-as-kill.)
Strange Names An historical aside: why the strange names? 7.1 carandcdrFunctions for extracting part of a list. 7.2 consConstructing a list. 7.3 nthcdrCalling cdrrepeatedly.7.4 nth7.5 setcarChanging the first element of a list. 7.6 setcdrChanging the rest of a list. 7.7 Exercise
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |