0
comment
comment
on 12/7/2012 3:30 PM
Sometimes in F# it is useful to use LINQ extension methods such as .Take(n), .Skip(n) and .Count().
However, in F# some LINQ extension methods such as .Where(...) and .Select(...) require a type annotation on the lambda variable. This is one of the relatively rare cases where F# code requires a type annotation where other languages do not, and is due to differences in the process of type inference and method overload resolution.
Luckily, there is a simple useful workaround. First add the library code below[...]