Skip to content

Instantly share code, notes, and snippets.

Created August 5, 2011 20:38
Show Gist options
  • Save anonymous/1128457 to your computer and use it in GitHub Desktop.
Save anonymous/1128457 to your computer and use it in GitHub Desktop.
;; rgantt's solution to Fibonacci Sequence
;; https://4clojure.com/problem/26
(fn[l]
(map
(fn fib[n] (if (<= n 2) 1 (+ (fib (- n 1)) (fib (- n 2)))))
(map (fn[n](+ n 1)) (range l)))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment