public
Created

FiboSeq

  • Download Gist
FiboSeq.fsx
F#
1 2 3 4 5 6
let rec fibf = Seq.cache <| seq {
yield! [1I; 1I]
yield! Seq.map2 (+) fibf (Seq.skip 1 fibf)
};;
 
fibf |> Seq.nth 100000

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.