Saturday, June 12, 2010

The Little LISPer - Chapter 9 - Lamdba The Ultimate

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 - Can you rewrite your function to map it to a list?
Exercise 2 - ycombinator - Apply this fn to this pair in the list
Exercise 3 - Can you rewrite your function for the ycombinator?
Exercise 4 - Rewrite member for the ycombinator
Exercise 5 - Use a continuation function instead of an evaluator
Exercise 6 - Can you abstract these two functions into an accumulator?
Exercise 7 - Can you abstract accumulators into a single function?
Exercise 8 - Can you write your function as a thunk?
Exercise 9 - Can you combine an S-expr and a thunk to make a stream?
Exercise 10 - Can you use P and Q to build a stream?

No comments:

Post a Comment