What should the following syntax do:
openSystemopenSystem.LinqletmyQueryable=[|(1,1);(2,2)|].AsQueryable()leta,b =
query {for x in myQueryable do
where(x =(3,3))
headOrDefault
}Currently it compiles, but produces a runtime System.NullReferenceException. A thing that we shouldn't have in FSharp, right?
Edit: The reason is...well, read the replies.
What should the following syntax do:
Currently it compiles, but produces a runtime System.NullReferenceException. A thing that we shouldn't have in FSharp, right?
Edit: The reason is...well, read the replies.