Press CTRL+C or CMD+C to copy the selected text and close this dialog.
Tweet
5 people like it. Like the snippet!
Fibonacci sequence with scan
1: 2:
#nowarn "40" let rec fibonacci = seq { yield 1; yield! Seq.scan (+) 2 fibonacci }