Music 220b: Winter 2001
Fernando Lopez-Lezcano, instructor
Christopher Burns, teaching assistant
Tamara Smyth, teaching assistant

Week 4: (cons) and association lists

Association lists are a variant of the standard Lisp data type with some useful properties. We can use association lists to make simple (and not-so-simple) databases -- the trick is to associate a key with its data, and then retrieve the data by reference to the key.

Before we look at association lists there's a fundamental list-making function we should look at: (cons).

For an example of an association list in action, see the generic state machine.

Course resources main page
220b main page