Define a procedure last-pair that returns the list that contains only the last element of a given (nonempty) list:
last-pair
(last-pair (list 23 72 149 34)) (34)
It's the wrong answer, it should be not the last element to be checked, but the list containing the last element
You must log in to post a comment.
It's the wrong answer, it should be not the last element to be checked, but the list containing the last element