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.

setq

setq

type: special form (fsubr)
location: built-in
source file: xlcont.c
Common LISP compatible: yes
supported on: all machines

SYNTAX

(setq [ <symbol1> <expr1> ] ... )
        <symbolN>       -       un-evaluated symbol
        <exprN>         -       value for <symbolN>

DESCRIPTION

SETQ sets <expr> as the value of <symbol>. SETQ returns the value from <expr> as it's result.

EXAMPLES

(setq a 1)                              ; symbol A gets value 1
(setq b '(a b c))                       ; symbol B gets value (A B C)
(setq mynum (+ 3 4))                    ; symbol MYNUM gets value 7


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