[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |

### 6.7.3 Vectors

Vectors are sequences of Scheme objects. Unlike lists, the length of a
vector, once the vector is created, cannot be changed. The advantage of
vectors over lists is that the time required to access one element of a vector
given its *position* (synonymous with *index*), a zero-origin number,
is constant, whereas lists have an access time linear to the position of the
accessed element in the list.

Vectors can contain any kind of Scheme object; it is even possible to have different types of objects in the same vector. For vectors containing vectors, you may wish to use arrays, instead. Note, too, that vectors are the special case of one dimensional non-uniform arrays and that most array procedures operate happily on vectors (see section Arrays).

6.7.3.1 Read Syntax for Vectors | Read syntax for vectors. | |

6.7.3.2 Dynamic Vector Creation and Validation | Dynamic vector creation and validation. | |

6.7.3.3 Accessing and Modifying Vector Contents | Accessing and modifying vector contents. | |

6.7.3.4 Vector Accessing from C | Ways to work with vectors from C. | |

6.7.3.5 Uniform Numeric Vectors | Vectors of unboxed numeric values. |

[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |

This document was generated on *April 20, 2013* using *texi2html 5.0*.