Last active
October 16, 2015 20:21
-
-
Save piyushmaurya23/123421d30840b54ae57f to your computer and use it in GitHub Desktop.
5. Define a Recursive LISP function which takes one argument as a list and returns last element of the list. (do not use last predicate)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun last_element(user_list) | |
(car (reverse user_list))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment