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.

list

list

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

SYNTAX

(list [ <expr1> ... ])
        <exprN>         -       an expression

DESCRIPTION

The LIST function takes the expressions and constructs a list out of them. This constructed list is returned.

EXAMPLES

(list)                                  ; returns NIL
(list NIL)                              ; returns (NIL)
(list 'a)                               ; returns (A)
(list 'a 'b)                            ; returns (A B)
(list 'a 'b 'c)                         ; returns (A B C)
(list 'a 'b NIL)                        ; returns (A B NIL)
(list '(a b) '(c d) '( (e f) ))         ; returns ((A B) (C D) ((E F)))
(list (+ 1 2) (+ 3 4))                  ; returns (3 7)


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