vector-set! -- r7rs Definition
§

Kind
§

mutator!;

Extended by
§

Procedure signature
§

Procedure variants:

Exports
§

Exports recursive
§

Description
§

(vector-set! vector k obj)

Domain: It is an error if k is not a valid index of vector.

The vector-set! procedure stores obj in element k of vector.

(let ((vec (vector 0 '(2 2 2 2) "Anna")))
  (vector-set! vec 1 '("Sue" "Sue"))
  vec)      ===>  #(0 ("Sue" "Sue") "Anna")

(vector-set! '#(0 1 2) 1 "doe")  ===>  #error  ; constant vector

The text herein was sourced and adapted as described in the "R7RS attribution of various text snippets" appendix.

Referenced-types
§