So why are the fields called CAR and CDR anyway?
(in before your other car)
Name:
Anonymous2007-09-28 16:40 ID:ktQ7+19S
YOU FUCKING MAGGOT-BRAINED DUMBFUCK. FOLLOW THE ``CAR AND CDR'' LINK FROM THE VERY PAGE YOU LINKED TO AND READ FOR YOURSELF.
Name:
Anonymous2007-09-28 17:00 ID:CxBKYAO9
Lisp was originally implemented on the IBM 704 computer, in the late 1950s. On the 704, a cons cell was represented by a single 36-bit machine word containing two parts: an address part and a decrement part, each 15 bits long. The assembly functions used to extract either part of a machine word were called car (Contents of Address of Register) and cdr (Contents of Decrement of Register).
>>8
No, in Lisp it's like
(car (cdr (movl (lea eax) (lambda () (car (cons x y))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
>>3
`car' and `cdr' are superior to something like `first' and second', because you can do things like caar (car of car), cddr (cdr of cdr), cadar (car of cdr of car), etc.