Last active
August 29, 2015 13:56
-
-
Save arkiver/8877250 to your computer and use it in GitHub Desktop.
Simple implementation(s) for finding last element from a list using Common Lisp.
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-of-list (l) | |
"Returns last element of a list" | |
(nth (- (list-length l) 1) l)) |
quasi
commented
Feb 11, 2014
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment