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.

Symbol Functions

(set <sym> <expr>)  SET THE VALUE OF A SYMBOL
    <sym>       the symbol being set
    <expr>      the new value
    returns     the new value
(setq [<sym> <expr>]...)  SET THE VALUE OF A SYMBOL
    <sym>       the symbol being set (quoted)
    <expr>      the new value
    returns     the new value
(psetq [<sym> <expr>]...)  PARALLEL VERSION OF SETQ
    <sym>       the symbol being set (quoted)
    <expr>      the new value
    returns     the new value
(setf [<place> <expr>]...)  SET THE VALUE OF A FIELD
    <place>     the field specifier (quoted):
                  <sym>                   set value of a symbol
                  (car <expr>)            set car of a cons node
                  (cdr <expr>)            set cdr of a cons node
                  (nth <n> <expr>)        set nth car of a list
                  (aref <expr> <n>)       set nth element of an array
                  (get <sym> <prop>)      set value of a property
                  (symbol-value <sym>)    set value of a symbol
                  (symbol-function <sym>) set functional value of a symbol
                  (symbol-plist <sym>)    set property list of a symbol
    <value>     the new value
    returns     the new value
(defun <sym> <fargs> <expr>...)  DEFINE A FUNCTION
(defmacro <sym> <fargs> <expr>...)  DEFINE A MACRO
    <sym>       symbol being defined (quoted)
    <fargs>     formal argument list (lambda list) (quoted)
    <expr>      expressions constituting the body of the
                function (quoted)
    returns     the function symbol
(gensym [<tag>])  GENERATE A SYMBOL
    <tag>       string or number
    returns     the new symbol
(intern <pname>)  MAKE AN INTERNED SYMBOL
    <pname>     the symbol's print name string
    returns     the new symbol
(make-symbol <pname>)  MAKE AN UNINTERNED SYMBOL
    <pname>     the symbol's print name string
    returns     the new symbol
(symbol-name <sym>)  GET THE PRINT NAME OF A SYMBOL
    <sym>       the symbol
    returns     the symbol's print name
(symbol-value <sym>)  GET THE VALUE OF A SYMBOL
    <sym>       the symbol
    returns     the symbol's value
(symbol-function <sym>)  GET THE FUNCTIONAL VALUE OF A SYMBOL
    <sym>       the symbol
    returns     the symbol's functional value
(symbol-plist <sym>)  GET THE PROPERTY LIST OF A SYMBOL
    <sym>       the symbol
    returns     the symbol's property list
(hash <sym> <n>)  COMPUTE THE HASH INDEX FOR A SYMBOL
    <sym>       the symbol or string
    <n>         the table size (integer)
    returns     the hash index (integer)

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