Created
May 24, 2018 08:46
-
-
Save lagenorhynque/e2d3844eba0048d84dac3ec4437f34eb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| (defn fib [n] | |
| (case n | |
| 0 0 | |
| 1 1 | |
| (+ (fib (- n 1)) | |
| (fib (- n 2))))) | |
| (let [x (-> *command-line-args* | |
| first | |
| js/parseInt)] | |
| (doseq [n (range x)] | |
| (println (fib n)))) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cf. https://github.com/anmonteiro/lumo