-
-
Save bhenry/8223ea8e8d2db70f54f2 to your computer and use it in GitHub Desktop.
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
(defn nth-fib [n] | |
(first (nth | |
(iterate #(vector (second %) (+ (first %) (second %))) [0 1]) | |
n))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment