chickadee » scheme » reverse

reverse listprocedure

Returns a newly allocated list consisting of the elements of list in reverse order.

(reverse '(a b c))                      ===>  (c b a)
(reverse '(a (b c) d (e (f))))
                ===>  ((e (f)) d (b c) a)