Elisp Data Structures: Vectors
Table of Contents
Vector implements the array data structures with fixed number of elements. Element’s value can be changed, but the number of elements cannot change.
1. Creating Vector
make-vector creates a vector of given length and value for all elements.
(make-vector 3 0) ; => [0 0 0]
vector creates vector with given elements (evaluated).
(vector 1 2 3) ; => [1 2 3]