Next: , Previous: , Up: iklib vectors   [Index]


6.28.4 Copying vectors

Function: subvector vec start end

vec must be a vector, and start and end must be exact integer objects satisfying:

0 <= start <= end <= (vector-length vec)

Return a newly allocated vector formed from the items of vec beginning with index start (inclusive) and ending with index end (exclusive).

Function: vector-copy vec

Return a newly allocated copy of the given vector. This is “shallow” copy, not a “deep” copy: the returned vector holds the same items of vec.

Function: vector-copy! src.vec src.start dst.vec dst.start count

Copy count items from src.vec starting at src.start (inclusive) to dst.vec starting at dst.start. Return unspecified values.