Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rgantt/1128607 to your computer and use it in GitHub Desktop.
Save rgantt/1128607 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 1) 1 (+ (fib (- n 1)) (fib (- n 2)))))
(range l))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment