Fundamentals of Computer Science I (CS151 2003F)
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[Honesty]
[Instructions]
[Links]
[Guidelines for Lab Writeups]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
Misc:
[Scheme Report]
[Glimmer Scheme Reference]
[CSC151.01 (Gum)]
[CSC151 2003S]
[CSC151 2002F]
[SamR]
Back to Conditionals. On to Conditionals (3).
Held: Monday, 15 September 2003
Summary: Today we continue our study of conditionals by working with them experimentally.
Related Pages:
Assignments
Notes:
Overview:
cond operations.if has the form
(if test truepart falsepart)
equals?, eq?
Is this datum a value of this type?
number?, list?, rational?, and much much more.
(not exp)
(and exp1 exp2)
(or exp1 exp2)
cond Statementif statements, you're much better off using the cond statement, which has the form
(cond ( (test1 exp1) (test2 exp2) (test3 exp3) ... (testn expn) (else default)))
Evaluate each test in turn. When one holds true, use the value of the corresponding expression and stop. If none holds, use default.
Back to Conditionals. On to Conditionals (3).
[Skip to Body]
Primary:
[Front Door]
[Current]
[Glance]
-
[Honesty]
[Instructions]
[Links]
[Guidelines for Lab Writeups]
Groupings:
[EBoards]
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
Misc:
[Scheme Report]
[Glimmer Scheme Reference]
[CSC151.01 (Gum)]
[CSC151 2003S]
[CSC151 2002F]
[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 Dec 9 13:59:36 2003.
The source to the document was last modified on Mon Sep 1 13:30:51 2003.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS151/2003F/Outlines/outline.11.html.
You may wish to
validate this document's HTML
;
;
Check with Bobby