reverse
reverse — reverses the order of list elements.
reverse (list)
listA list.
A new list which whose top-level structure is the reverse of the input
list. If the argument is not a list, returns the
argument.
None of the elements of the original list is
copied. The resulting list contains elements which are eq to the
corresponding elements in the original. The original
list is not changed.
Gamma>S = list(1,2,3);(1 2 3)Gamma>R = reverse (S);(3 2 1)Gamma>S;(1 2 3)Gamma>car (S);1Gamma>caddr(R);1Gamma>eq (car (S),caddr(R));tGamma>