Created
November 2, 2011 03:22
-
-
Save mikera/1332761 to your computer and use it in GitHub Desktop.
Revisions
-
mikera revised this gist
Nov 2, 2011 . 1 changed file with 2 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 @@ -13,4 +13,5 @@ (take 10 fibs) => (0 1 1 2 3 5 8 13 21 34) -
mikera renamed this gist
Nov 2, 2011 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mikera created this gist
Nov 2, 2011 .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,16 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Frequency analysis (implicitly treating a string as a sequence of chars) (frequencies "abracadabra") => {\a 5, \b 2, \r 2, \c 1, \d 1} ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Infinite, lazily calculated sequence of Fibonacci numbers (def fibs (lazy-cat [0N 1N] (map + (rest fibs) fibs))) (take 10 fibs) => (0 1 1 2 3 5 8 13 21 34)