Beginner question:
Why doesn't a call to PUSH modify a list passed as a function arg? E.g.
TIA.
- Phil -
Why doesn't a call to PUSH modify a list passed as a function arg? E.g.
(defun my-push (element lst)
(push element lst))
(defvar *my-list* nil)
(my-push 'x *my-list*)
This returns (X) but leaves *my-list* unchanged. Why is that?TIA.
- Phil -