Fundamentals of Computer Science 1 (CS151 2003S)
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[EC]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Lab Writeups]
[Outlines]
[Project]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Misc:
[Scheme Reference]
[Scheme Report]
[CS151 2003S Gum]
[CS151 2002F]
[CS151 History]
[SamR]
Held: Wednesday, 5 March 2003
Summary:
Today we visit a database-like application of Scheme, Association lists.
Association lists allow you to associate information with a key
and then look up the value by the key.
Related Pages:
Assignments
Notes:
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.Overview:
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]
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[EC]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Lab Writeups]
[Outlines]
[Project]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Misc:
[Scheme Reference]
[Scheme Report]
[CS151 2003S Gum]
[CS151 2002F]
[CS151 History]
[SamR]
Disclaimer:
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 http://www.cs.grinnell.edu/~rebelsky/Courses/CS151/2003S/Outlines/outline.27.html
.
You may wish to
validate this document's HTML
;
;
Check with Bobby