Last element of list

Define a procedure last-pair that returns the list that contains only the last element of a given (nonempty) list:

(last-pair (list 23 72 149 34))
(34)

    # Evgeny Levdorovich
    4 months ago

    It's the wrong answer, it should be not the last element to be checked, but the list containing the last element

Authentication required

You must log in to post a comment.

Login