Press CTRL+C or CMD+C to copy the selected text and close this dialog.
Tweet
16 people like it. Like the snippet!
Cached fib sequence
1: 2: 3: 4: 5:
let fibs = let rec f a b = seq { yield a yield! f b (a+b) } f 1 1 |> Seq.cache