Nyquist / XLISP 2.0  - 
Contents |
Tutorials |
Examples |
Reference
setq
  | Type: | - | special form (fsubr) | 
  | Source: | - | xlcont.c | 
Syntax
- (setq [symbol1 expr1] ... )
- symbolN - un-evaluated symbol
 exprN - value for symbolN
 returns - the new value
Description
The 'setq' special form 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
See the
setq
special form in the XLISP 2.0 manual.
  Back to Top
Nyquist / XLISP 2.0  - 
Contents |
Tutorials |
Examples |
Reference