Next: , Previous: , Up: srfi vector spec   [Index]


2.23.4.7 Mutators

Function: vector-set! vec i value -> unspecified

R5RS Assign the contents of the location at i in vec to value.

Function: vector-swap! vec i j -> unspecified

Swap or exchange the values of the locations in vec at i and j.

Function: vector-fill! vec fill [start [end]] -> unspecified

R5RS+ Assign the value of every location in vec between start, which defaults to 0 and end, which defaults to the length of vec, to fill.

Function: vector-reverse! vec [start [end]] -> unspecified

Destructively reverse the contents of the sequence of locations in vec between start and end. Start defaults to 0 and end defaults to the length of vec. Note that this does not deeply reverse.

Function: vector-copy! target tstart source [sstart [send]] -> unspecified

Copy a block of elements from source to target, both of which must be vectors, starting in target at tstart and starting in source at sstart, ending when send - sstart elements have been copied. It is an error for target to have a length less than:

tstart + (send - sstart)

sstart defaults to 0 and send defaults to the length of source.

Function: vector-reverse-copy! target tstart source [sstart [send]] -> unspecified

Like vector-copy!, but this copies the elements in the reverse order. It is an error if target and source are identical vectors and the target and source ranges overlap; however, if tstart = sstart, vector-reverse-copy! behaves as:

(vector-reverse! target tstart send)

would.


Next: , Previous: , Up: srfi vector spec   [Index]