Held: Wednesday, 5 March 2003
Today we visit a database-like application of Scheme, Association lists.
Association lists allow you to associate information with a
and then look up the value by the key.
http://www.cs.grinnell.edu/~rebelsky/Scheme/books.html. Please use the format
(list "author-last" "author-first" "title" (list "adj1" "adj2" "adj3" "adj4" "adj5"))
listp?procedure, so we'll go over some variations.
assoc, a procedure for searching lists.
(assoc key list)procedure to look up values by key.
assoc. How would you write it? Probably recursively.
Thursday, 16 January 2003 [Samuel A. Rebelsky]
Tuesday, 4 March 2003 [Samuel A. Rebelsky]
I usually create these pages
on the fly, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Tue May 6 09:29:58 2003.
The source to the document was last modified on Tue Mar 4 21:20:37 2003.
This document may be found at