Created
March 21, 2018 12:54
-
-
Save katsuyan/2614795767ab4c39e84ff8f5eded6910 to your computer and use it in GitHub Desktop.
数学パズルonClojure-Q17
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
(ns puzzule.q17) | |
(def fib-seq | |
(lazy-cat [1 1] (map + (rest fib-seq) fib-seq))) | |
(defn answer [num] | |
(last (take (+ num 2) fib-seq))) | |
(answer 30) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment