Last active
August 29, 2015 13:58
-
-
Save kohyama/10346936 to your computer and use it in GitHub Desktop.
Revisions
-
kohyama revised this gist
Apr 10, 2014 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,4 +7,7 @@ 3 "Fizz" x)) (def fibbuzz-seq (map fizzbuzz (fibs 1 1))) ; (take 100 fibbuzz-seq) ; -> (1 1 2 "Fizz" "Buzz" 8 13 "Fizz" ... 218922995834555169026N "FizzBuzz") -
kohyama revised this gist
Apr 10, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,4 +7,4 @@ 3 "Fizz" x)) (def fibbuzz-seq (map fizzbuzz (fibs 1 1))) -
kohyama revised this gist
Apr 10, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ (defn fibs [a b] (cons a (lazy-seq (fibs b (+' a b))))) (defn fizzbuzz [x] (condp #(zero? (mod %2 %1)) x -
kohyama revised this gist
Apr 10, 2014 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -7,5 +7,4 @@ 3 "Fizz" x)) (def fibbuzz-seq (map fizzbuzz (fibs 1N 1N))) -
kohyama created this gist
Apr 10, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ (defn fibs [a b] (cons a (lazy-seq (fibs b (+ a b))))) (defn fizzbuzz [x] (condp #(zero? (mod %2 %1)) x 15 "FizzBuzz" 5 "Buzz" 3 "Fizz" x)) (def fibbuzz-seq (map fizzbuzz (fibs 1N 1)))