Skip to content

Instantly share code, notes, and snippets.

@otofu-square
Last active June 30, 2017 08:10
Show Gist options
  • Save otofu-square/e951599301b18ddd93d499739462e7eb to your computer and use it in GitHub Desktop.
Save otofu-square/e951599301b18ddd93d499739462e7eb to your computer and use it in GitHub Desktop.
Fibonacchi in clojure
(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