Fundamentals of CS I (CS151 2002F)
Primary:
[Skip To Body]
[Front Door]
[Current]
[Glance]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Groupings:
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Miscellaenous:
[Scheme Reference]
[CS151 2002F Gum]
[CS151 2001S]
[SamR]
[Glimmer Labs]
[schemers.org]
Back to Vectors. On to Local Bindings.
Held Monday, October 7, 2002
Summary
Today we continue our exploration of vectors.
Today's Work
Assignments
Notes on Exam 1
email-eval.ss
email-value-helper read (word-value (car (car histogram)))))) (word-value (car (car histogram)) word-values))))
extract-words-helper that read (cons (car chars) word-chars) (cons (char-downcase (car chars)) word-chars)
(display "Testing foo on the empty list.\n") (display "(foo null)\n") (foo null) ; 0
Other Notes
Overview
(vector val1 ... valn):
a lot like list
(make-vector size element):
make a vector of a particular length containing lots
of copies of the same value.
(vector? value): determine if a
value is a vector
(vector-length vector): get the
length of a vector
(vector-ref vector pos): get
an element from a vector.
(vector-set! vector pos newval):
change part of a vector. Note the use of an exclamation point
to indicate that this changes its argument.
(list->vector list): Guess
(vector->list vector): Guess
(vector-fill! vector value): Fill
an existing vector with a particular value.
Thursday, 29 August 2002 [Samuel A. Rebelsky]
Monday, 7 October 2002 [Samuel A. Rebelsky]
Back to Vectors. On to Local Bindings.
Primary:
[Skip To Body]
[Front Door]
[Current]
[Glance]
[Honesty]
[Instructions]
[Links]
[Search]
[Syllabus]
Groupings:
[Examples]
[Exams]
[Handouts]
[Homework]
[Labs]
[Outlines]
[Readings]
[Reference]
ECA:
[About]
[Grades]
[Quizzes]
[Submit Work]
[Change Password]
[Reset Password]
Miscellaenous:
[Scheme Reference]
[CS151 2002F Gum]
[CS151 2001S]
[SamR]
[Glimmer Labs]
[schemers.org]
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 Mon Dec 2 08:41:18 2002.
The source to the document was last modified on Mon Oct 7 07:53:29 2002.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS151/2002F/Outlines/outline.22.html.
You may wish to
validate this document's HTML
;
;
Check with Bobby