Sets the value of a symbol to be a function defined by a list
(defun-q-list-set 'sym list)
Arguments
A symbol naming the function
A list containing the expressions to be included in the function.
Return Values
The sym defined.
Examples
_$ (defun-q-list-set 'foo '((x) x))
FOO
_$ (foo 3)
3
defun-q-list-set to combine two functions into a single function. First, from the Visual LISP Console window, define two functions with defun-q:
The following example illustrates the use of_$ (defun-q s::startup (x) (print x))
S::STARTUP
_$ (defun-q my-startup (x) (print (list x)))
MY-STARTUP
defun-q-list-set to combine the functions into a single function:
Use_$ (defun-q-list-set 's::startup (append
(defun-q-list-ref 's::startup)
(cdr (defun-q-list-ref 'my-startup))))
S::STARTUP
defun-q-list-set:
The following illustrates how the functions respond individually, and how the functions work after being combined using_$ (defun-q foo (x) (print (list 'foo x)))
FOO
_$ (foo 1)
(FOO 1) (FOO 1)
_$ (defun-q bar (x) (print (list 'bar x)))
BAR
_$ (bar 2)
(BAR 2) (BAR 2)
_$ (defun-q-list-set
'foo
(append (defun-q-list-ref 'foo)
(cdr (defun-q-list-ref 'bar))
))
FOO
_$ (foo 3)
(FOO 3)
(BAR 3) (BAR 3)
defun-q and defun-q-list-ref functions.
The