The Mnemonics that I use are:
CAR - Copy Alpha position and Return
CDR - Copy Dendrite (tree part - without the root) and Return
I am newly getting back to trying Lisp, but hopefully this fits.
I tend to think of the starting of a list as the alpha or the root position.
If the first position is the root, and I am used to seeing binary trees (which can be represented as a list), then a word related to trees would seem to be in order. Dendrite has the right beginning letter and seems to fit. It represents the last of the tree without the root.
Another take is from Robert Smith:
CAR - "Cell’s Anterior Region"
CDR - "Cell’s Dorsal Region"
"We can get the second part of the cell. Let’s call this part the dorsal region (why not posterior? The meaning of dorsal makes more sense with lists, in that the dorsal region of a list [1,2,3] is the part “near the end”, [2,3], whereas the posterior would just be 3)."
from Lisp has too many parentheses… (…or so they say!) By Robert Smith, on November 7th, 2010
Symbo1ics
I know this bears no relation to what the acronyms originally were, but even Steve Russell said:
"Because of an unfortunate temporary lapse of inspiration, we couldn't think of any other names for the 2 pointers in a list node than "address" and "decrement", so we called the functions CAR for "Contents of Address of Register" and CDR for "Contents of Decrement of Register".
After several months and giving a few classes in LISP, we realized that "first" and "rest" were better names, and we (John McCarthy, I and some of the rest of the AI Project) tried to get people to use them instead.
Alas, it was too late! We couldn't make it stick at all. So we have CAR and CDR."
The origin of CAR and CDR in LISP
first
and friends,rest
, andnth
for list manipulation andc[ad]+r
for trees. – Jeremyjerez