(guile.info.gz) Vectors
Info Catalog
(guile.info.gz) Lists
(guile.info.gz) Compound Data Types
(guile.info.gz) Records
22.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 some array procedures operate happily on vectors ( Arrays).
Menu
* Vector Syntax Read syntax for vectors.
* Vector Creation Dynamic vector creation and validation.
* Vector Accessors Accessing and modifying vector contents.
Info Catalog
(guile.info.gz) Lists
(guile.info.gz) Compound Data Types
(guile.info.gz) Records
automatically generated byinfo2html