News for hackers. Stuff that matters.
Re:What does “my other car is a cdr” mean? by dreamcompiler on Thursday May 25, 2017 @11:12AM (#14417800)
To me the original makes more sense. A cons cell is a 2-tuple. CAR retrieves the first element; CDR retrieves the "other" one. The fact that CARs are usually atoms and CDRs are usually lists is a convention, not a rule. You can easily put an atom in the CDR of a cons (this is called a dotted pair) and you can easily put a list in the CAR.

There are no comments on this comment yet.