Fundamentals of CS I (CS151 2001S) : Outlines
[Current]
[Discussions]
[Glance]
[Honesty]
[Instructions]
[Links]
[News]
[Search]
[Syllabus]
Primary
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Quizzes]
[Readings]
[Reference]
Sets
[Blackboard]
[Scheme Report]
[SamR's Schedule]
[Rebelsky/Fall 2000]
[Walker/Fall2000]
[Stone/Spring2000]
Links
Reading: Symbols and lists. Lab: Symbols and Lists. Back to Starting Scheme. On to Numbers.
Held Monday, January 29, 2001
Summary
Today we consider two of Scheme's most important types of data: symbolic values and lists.
Assignments
Notes
Overview
lambda that you'll
learn about soon was just a "hmmm ... that sounds interesting, I'll
put it in" fluke.
> 'a a > a reference to undefined identifier: a > (quote a) a
null or
().
(cons thing-for-the-front rest-of-the-list)
> (cons 'a null) (a) > (cons 'b (cons 'a null)) (b a)
list.
> (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.
Back to Starting Scheme. On to Numbers.
[Current]
[Discussions]
[Glance]
[Honesty]
[Instructions]
[Links]
[News]
[Search]
[Syllabus]
Primary
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Quizzes]
[Readings]
[Reference]
Sets
[Blackboard]
[Scheme Report]
[SamR's Schedule]
[Rebelsky/Fall 2000]
[Walker/Fall2000]
[Stone/Spring2000]
Links
Disclaimer: I usually create these pages on the fly. This means that they are rarely proofread and may contain bad grammar and incorrect details. It also means that I may update them regularly (see the history for more details). Feel free to contact me with any suggestions for changes.
This page was generated by Siteweaver on Wed May 5 12:14:47 2004.
This page may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS151/2001S/outline.05.html.
You may validate
this page's HTML.
The source was last modified Tue Jan 23 16:01:56 2001.