Created
August 5, 2011 20:38
-
-
Save anonymous/1128457 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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