Saturday, June 12, 2010

The Little LISPer - Chapter 4 - Number Games

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. (http://www.amazon.com/dp/0023397632/).

The questions are also available here (http://www.ccs.neu.edu/home/matthias/BTLS/exercises.ps)



Exercise 1. Duplicate that atom
Exercise 2. Multiply that list of numbers
Exercise 3. What is the fifth commandment?
Exercise 4. Is the list exponent function correct?
Exercise 5. What is the index of this atom in the list?
Exercise 6. What is the index of this atom in the list?
Exercise 7. What is the vector dot product of these two lists?
Exercise 8. Divide that list of numbers
Exercise 9. Telling LISP to find that remainder
Exercise 10. Less than or equal to?

No comments:

Post a Comment