Functions for List Manipulation
Car, Cdr, Cadr, Cdar, etc
- Basic list reading tools.
- The 'a' stands for address and the 'd' stands for data (look at how an dotted pair is used).
- It makes sense to someone, but the rule I use for using them is:
- The must Start with 'c' and end with 'r', but the 'c' and the 'r' are ignored
- Read from Right to Left (backwards)
- Unless you are working with an associative list, the rules are:
- for every 'd', strip off the first item of the list
- for every 'a', return the first item of the list