Created
August 20, 2011 15:49
-
-
Save davidgrenier/1159257 to your computer and use it in GitHub Desktop.
FiboSeq
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
let rec fibf = Seq.cache <| seq { | |
yield! [1I; 1I] | |
yield! Seq.map2 (+) fibf (Seq.skip 1 fibf) | |
};; | |
fibf |> Seq.nth 100000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment