Skip to content

Instantly share code, notes, and snippets.

@richhickey
Created June 10, 2010 01:49

Revisions

  1. richhickey created this gist Jun 10, 2010.
    6 changes: 6 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    (defn ^:static fib ^long [^long n]
    (if (>= (long 1) n)
    (long 1)
    (+ (fib (dec n)) (fib (- n (long 2))))))

    (dotimes [_ 10] (time (fib 38)))