Cutting Vectors - MIT/GNU Scheme 9.2
Description: MIT/GNU Scheme 9.2

Next: Modifying Vectors, Previous: Selecting Vector Components, Up: Vectors

### 8.3 Cutting Vectors

— procedure: subvector vector start end

> Returns a newly allocated vector that contains the elements of vector between index start (inclusive) and end (exclusive).

— procedure: vector-head vector end

> Equivalent to

>               (subvector vector 0 end)

— procedure: vector-tail vector start

> Equivalent to

>               (subvector vector start (vector-length vector))