Skip to content

Instantly share code, notes, and snippets.

@piyushmaurya23
Last active October 16, 2015 20:23
Show Gist options
  • Save piyushmaurya23/269b024aa5dc0b4cadae to your computer and use it in GitHub Desktop.
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)
(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