Disclaimer: Total F# Newbie question!
If I type the following into an F# file in Visual Studio
#light
let squares =
se
If you want to display all the values in the sequence without transforming into a List, you can iterate directly on the sequence like so:
Seq.iter (printfn "%A") squares
Note that you're taking a risk: if, as Brian hints, the sequence is infinite, you could be in for a rather long wait. (In this case, Seq.skip
and Seq.take
are your friends)