Definitions for cdr
The second part of a cons in LISP. The rest of a list when the first element is removed.
Origin: Acronym of contents of the decrement part of register number. Note that it was based on original hardware and has no meaning today.
The New Hacker's Dictionary
[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.
Find a translation for the cdr definition in other languages:
Select another language: