I am just starting with lisp and I can't figure out the following issue:
I want to push *not* elementos into a list, but its *references*, for example, if I write
Code: Select all
(let (
(a '())
(b '()))
(push 1 a)
(push a b)
(push 2 a)
(print a)
(print b))
Code: Select all
(2 1)
((1))
Code: Select all
(2 1)
((2 1))
Is there a way to achieve that?
thanks!!