Saturday, June 12, 2010

The Little LISPer - Chapter 3 - Cons the Magnificent

You can go to the parent page here.

These are links to worked examples of The Little Lisper (3rd Edn.) in Common Lisp. They are being released in sequence, so not all are available now.

The assumption is that you have a copy or have read Mattias Felleison's The Little LISPer. (

The questions are also available here (

Exercise 1. Getting the spanish red beans out of a nested list
Exercise 2. Hot chili - List of duplicates function
Exercise 3. hot hot chili - duplicating an atom function
Exercise 4. hot sauce - substutition function
Exercise 5. and tomato sauce - multi substution function
Exercise 6. texas hot hot - list intersection substitution function
Exercise 7. Telling LISP to remove the sauce (atom)
Exercise 8. red wine - Is this a natural recursion?
Exercise 9. Removing the second chili (from this list)
Exercise 10. Are there some common ingredients in insert and subst?

No comments:

Post a Comment