Why doesn't a call to PUSH modify a list passed as a function arg? E.g.
Code: Select all
(defun my-push (element lst)
(push element lst))
(defvar *my-list* nil)
(my-push 'x *my-list*)
TIA.
- Phil -
Code: Select all
(defun my-push (element lst)
(push element lst))
(defvar *my-list* nil)
(my-push 'x *my-list*)