SICP Exercise 2.17 last-pair
Exercise 2.17. Define a procedure last-pair that returns the list that contains only the last element of a given (nonempty) list:
The code and tests are here.
(last-pair (list 23 72 149 34))
(34)
(34)
SOLUTION
Comments
Post a Comment