Cdr

From JargonWiki

Jump to: navigation, search
The Jargon File

Parts of this article are based on the Jargon File, v. 4.4.7,
a public domain document of hacker jargon.

Image:Glider-small.png
cdr
/ku´dr/
/kuh´dr/
Usage: vt.
Derivation: From LISP

See Also: loop through


cdr: /ku´dr/ /kuh´dr/ vt.

[from LISP] To skip past the first item from a list of things (generalized from the LISP operation on binary tree structures, which returns a list consisting of all but the first element of its argument). In the form cdr down, to trace down a list of elements: "Shall we cdr down the agenda?" Usage: silly. See also loop through.

Historical note: The instruction format of the IBM 704 that hosted the original LISP implementation featured two 15-bit fields called the address and decrement parts. The term cdr was originally Contents of Decrement part of Register. Similarly, car stood for Contents of Address part of Register.

The cdr and car operations have since become bases for formation of compound metaphors in non-LISP contexts. GLS recalls, for example, a programming project in which strings were represented as linked lists; the get-character and skip-character operations were of course called CHAR and CHDR.

Sources

Source: cdr, in The Jargon File, version 4.4.7.


Public Domain

This article is in the public domain and is not subject to copyright, trademark, or any other legal protection of intellectual property.
Any and all user contributions to this page are also immediately dedicated to the public domain.
Editors of this page must accede to these terms as special conditions of the standard editing privileges.

Image:Public_Domain_sm.png
Personal tools
Toolbox