A vector is a collection of elements which are indexed by integers from 0 through n-1, where n is the length of the vector. Furthermore, in Scheme, vectors have the property that any element within a vector may be accessed directly. If a second argument is given, then each component of the new vector contains a copy of the value of the second argument.
Some examples follow.
Write a paragraph explaining how view works. Modify view , so that it also prints this length. Write a procedure vector-find that searches a vector for a given item. If the item is found, vector-find should return the location of the first occurrence of the item. That is, within vector vect , the element at the given index is changed to the specified new-value .