reversing list in Lisp

Your code as written is logically correct and produces the result that you’d want it to: That said, there are some issues with it in terms of performance. The append function produces a copy of all but its final argument. E.g., when you do (append ‘(1 2) ‘(a b) ‘(3 4)), you’re creating a four new cons cells, … Read more