This outline is also available in PDF.
Held: Wednesday, 6 February 2008
Summary: We consider one simple representation of images in which we list the positions and colors of the colored spots in an image. Along the way, we explore lists, the most important structured data type in Scheme.
(cons thing-for-the-front rest-of-the-list)
> (cons 'a null) (a) > (cons 'b (cons 'a null)) (b a)
> (list 'a 'b 'c) (a b c)
car: get the initial element of the list.
cdr: get all but the initial element of the list.
list-ref: get the ith element of the list.
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 Apr 15 23:11:35 2008.
The source to the document was last modified on Thu Jan 17 16:44:10 2008.
This document may be found at
You may wish to validate this document's HTML ; ;Samuel A. Rebelsky, email@example.com
http://creativecommons.org/licenses/by-nc/2.5/or send a letter to Creative Commons, 543 Howard Street, 5th Floor, San Francisco, California, 94105, USA.