| Category | Primitive procedure | |||||||||
| Format | (vector obj1 ...) | |||||||||
| Parameters |
|
|||||||||
| Description | vector gathers its arguments into a vector and returns it. | |||||||||
| R4RS Compliance | Full | |||||||||
| Examples |
|
| Category | Native procedure | ||||||
| Format | (vector->list vec) | ||||||
| Parameters |
|
||||||
| Description | vector->list returns a newly allocated list of the elements of the vector vec. | ||||||
| R4RS Compliance | Full | ||||||
| Examples |
|
| Category | Primitive procedure | |||||||||
| Format | (vector-length vec) | |||||||||
| Parameters |
|
|||||||||
| Description | vector-length returns the number of elements in vec. | |||||||||
| R4RS Compliance | Full | |||||||||
| Examples |
|
| Category | Primitive procedure | ||||||
| Format | (vector-ref vec index) | ||||||
| Parameters |
|
||||||
| Description | vector-ref returns the indexth element of vec. The index of the first element is 0, and the index of the last element is the length of vec minus one. | ||||||
| R4RS Compliance | Full | ||||||
| Examples |
|
| Category | Primitive procedure | ||||||
| Format | (vector-set! vec index obj) | ||||||
| Parameters |
|
||||||
| Description | vector-set! replaces the indexth element of vec by obj. The modified vector is returned. The index of the first element is 0, and the index of the last element is the length of vec minus one. It's no error to modify a constant vector in LispMe, as all values are heap-allocated and constant vectors are never shared, so the examples are valid. | ||||||
| R4RS Compliance | Full | ||||||
| Examples |
|
| Category | Primitive procedure | |||||||||
| Format | (vector? obj) | |||||||||
| Parameters |
|
|||||||||
| Description | vector? returns #t for a vector and #f for any other object. | |||||||||
| R4RS Compliance | Full | |||||||||
| Examples |
|
Back to index A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Other