vector-set!

(vector-set! v k obj)


Description:

Sets element k of v to obj.  make sure that v is not literal


Arguments:

              v -- vector

              k -- index into vector

            obj -- object to set at k


Returns: boolean


Examples:

(define v1 (vector 1 2 3 4 5))

(vector-set! v1 2 'hello)

(print v1)



Back to index