Held Monday, October 7, 2002
Today we continue our exploration of vectors.
Notes on Exam 1
(word-value (car (car histogram))))))
(word-value (car (car histogram)) word-values))))
(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
(vector val1 ... valn): a lot like
(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]
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