Friday, 09-Jan-2009 08:02:27 GMT Tell a friendLink to this pageRandom Article
 
 
Online encyclopedia

 


Cdr

In computer programming, cdr (pronounced cudder) and car are a pair of primitive functions in the Lisp programming language.

The functions cdr and car are used to refer to the tail (cdr) and head (car) of a list:

(cdr '(A B C)) yields (B C)
(car '(A B C)) yields A

The names have their origin in the first implementation of Lisp on an IBM 704 computer. On the 704, an atom[?] was represented by a single 36-bit machine word containing a so-called address part and a decrement part. Each of these parts had a length of 15 bits. The address part was used to point to the head of a list and the decrement part was used to address its tail. The functions used to extract either part of a machine word were called car (Contents of Address Register) and cdr (Contents of Decrement Register).

Portions from NILS' LISP PAGES - http://t3x.dyndns.org/LISP/QA/carcdr.html

 

Tell a friend about this page.
Send this page
Bookmark Cdr.

 

Link to this page: The easy way to educate your website visitors. Post a link to definition / meaning of " Cdr " on your site.
HTML code: Resulting link:

Cdr

 

This online educational article is provided by contributions of Wikimedia Foundation.
Licensed under the GNU free documentation license. View live article. Copyright & Disclaimer - Contact

Partners: Digital Gadgets | Logo Design | Business Articles | Online Calculators

Anti-Spam Coalition