Assign the statement to the symbol.
This function is an assignment function, similar to the setq function. Set assigns the statement argument to symbol. The symbol should be quoted. When left unquoted, it changes the values of previously assigned symbols.
Examples
Code | Returns |
---|---|
(set 'x 56) | 56 |
(set 'y "Hello") | "Hello" |
(set 'z '(a b c d)) | (A B C D) |
NOTE The difference between the set function and the setq function is that set evaluates the symbol. The following are equivalent expressions:
Tell me about...
Programming Overview of LISP (LISt Processing) Language
Bricscad™ is commercialized by Bricsys NV. Bricsys NV and Vondle NV are fully owned subsidiaries of Menhirs NV. © 2001- Menhirs NV - All rights reserved. |