Question: Write an emacs/lisp program (Provide proof it works) A function called reverse that reverses a list. The function takes one parameter that you can assume
Write an emacs/lisp program (Provide proof it works)
A function called reverse that reverses a list. The function takes one parameter that you can assume to be a list, and returns another list which is the reverse of the argument (you don't need to do the operation in place). You can use the function list that creates a list out of its arguments, or append that concatenates two lists and returns the result. Implementation suggestion: using dolist or recursion.
What the results should look like: (reverse '()) ; '() or nil (reverse '(2)) ; (2) (reverse '(1 2 3)) ; (3 2 1)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
