Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: