I just started with LINQPad 5 and I am not very experienced (to say the least) with .NET. I have the following F# script that runs in Visual Studio:
let x = [1 .. 10]
let enumerator = x.GetEnumerator()
while enumerator.MoveNext() do
let num = enumerator.Current
printfn "%i" num
LINQPad complains about the first line, says Unmatched '('.
I tried to add the references using the F4 key. The two DLLs show in the Query Properties window that pops up. After removing the two open statements I still get an error, with the message:
The field constructor or member 'GetEnumerator' is not defined (using external F# compiler)
What am I doing wrong?