Scheme Exercises
back to exercise list
previous next
Group: Exercise: 31/48
myReverse:
Reverse the order of the elements of a list
Create the function "myReverse" which will be given a list (possibly empty) and will reverse the order of its elements. For instance: (myReverse'(a b c)) ; -> (c b a) (myReverse'()) ; -> () (myReverse '((a b) c)) ; -> (c (a b)) (myReverse'((a b c d))) ; -> ((a b c d))
|