(atoms-family format [symbol1 symbol2 ...])
Determine which function names are being used.
This function lists all the pre-defined and user-defined functions in the current session. The format argument specifies how the information is returned. Format is an integer value of 0 or 1.
Format | Meaning |
---|---|
0 | Defined functions are returned as a list. |
1 | Defined functions are returned as a list of strings. |
The optional argument [symbol1symbol2 ...] is a list of strings representing symbols. It is used to confirm whether the function names are defined in the current session. If symbol1, symbol2, ... are defined, LISP returns the symbols as strings, depending on the format chosen. If one is not defined, a nil is returned in place of the symbol.
Examples
Code | Returns |
---|---|
(setq hi "Greeting 1") | |
(setq bye "Greeting 2") | |
(atoms-family 0 '("hi" "bye")) | (HI BYE) |
(atoms-family 0 '("hi" "hello" "bye")) | (HI nil BYE) |
(atoms-family 1 '("hi" "bye")) | ("HI" "BYE") |
Tell me about...
(defun [c:] name ([arg1 arg2 ...] / [local-var1 local-var2 ...]) expression)
(lambda arguments expression ...)