Closed hjkl950217 closed 3 weeks ago
The first error is that x
can't be used as an identifier in both places. Changing either identifier for both x
and y
fixes the problem to someth
The second issue seems to be that the C# compiler is unable to both select a single map
among the 64 overloads and infer the type parameters of lpar
as the same time.
The second error doesn't know how to modify the code,I just contacted this library, but I couldn't find the corresponding method
var res = lpar<IEnumerable
this shall fix second error.
The reason behind this is that since lpar is not define as Func<> so that C# can't interpret the generic type correctly.
In document. there's a note. And this shall apply to lpar as well. NOTE: When using a method as an argument to curry you will need to provide the generic arguments that represent the arguments and return type of the method being curried.
address :https://github.com/louthy/language-ext/wiki/Thinking-Functionally:-Partial-application
This code doesn't compile.