Last active
June 30, 2017 08:10
-
-
Save otofu-square/e951599301b18ddd93d499739462e7eb to your computer and use it in GitHub Desktop.
Fibonacchi in clojure
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 fibonacchi | |
[n] | |
(condp = n | |
0 1 | |
1 1 | |
(+ (fibonacchi (- n 1)) (fibonacchi (- n 2))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment