Please let me know if I’m doing things wrong or unconventionally. I’m teaching myself lisp and would appreciate critical feedback.
I noticed that ‘push’ doesn’t accept the return value of ‘reverse’ as a legitimate ‘place’…
15462> (defvar l (list 1 2 3 4 5))
l
15457> (push 6 (reverse l))
Error: 'push' illegal place
But if I put that same result from ‘reverse’ into a variable, I can use it as ‘place’…
15457> (setq l (reverse l))
(5 4 3 2 1)
15457> (setq l (reverse (push 6 l)))
(1 2 3 4 5 6)
Let me know if this isn’t typically how a Lisper would append a value to an existing list.
Thanks! and I’m loving uLisp!! Kudos on all your work. You’ve done a very diligent job with your code and website. It’s awesome!