Structural Informatics Group (SIG) logo
Home | Projects | Demos | Downloads | Publications | Local Info | About Us | New site
Go to the first, previous, next, last section, table of contents.

vector

vector

type: function (subr)
location: built-in
source file: xlbfun.c
Common LISP compatible: yes
supported on: all machines

SYNTAX

(vector [ <expr> ... ] )
        <expr>          -       an expression

DESCRIPTION

The VECTOR function creates an initialized vector and returns it as the result. VECTOR is essentially a fast method to do a one-dimensional MAKE-ARRAY with initial data in the vector.

EXAMPLES

(vector 'a 'b 'c)                       ; returns #(A B C)
(vector '(a b) '(c d))                  ; returns #((A B) (C D))
(vector)                                ; returns #()
(vector NIL)                            ; returns #(NIL)
(vector 'a () 4 "s")                    ; returns #(A NIL 4 "s")


Go to the first, previous, next, last section, table of contents.