Skip to content

Instantly share code, notes, and snippets.

@richhickey
Created June 10, 2010 01:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richhickey/432465 to your computer and use it in GitHub Desktop.
Save richhickey/432465 to your computer and use it in GitHub Desktop.
(defn ^:static fib ^long [^long n]
(if (>= (long 1) n)
(long 1)
(+ (fib (dec n)) (fib (- n (long 2))))))
(dotimes [_ 10] (time (fib 38)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment