Last active
October 16, 2015 20:23
-
-
Save piyushmaurya23/269b024aa5dc0b4cadae to your computer and use it in GitHub Desktop.
6. Define a Recursive LISP function which takes one argument as a list and returns a list except last element of the list. (do not use but 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 exceptlast_element(user_list) | |
(reverse (cdr (reverse user_list)))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment