Created
January 10, 2012 12:59
-
-
Save SeanTAllen/1588966 to your computer and use it in GitHub Desktop.
Nth Element
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
(fn [list element] (if (zero? element) (first list)(recur (rest list)(dec element)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment