C# Linq vs. Currying

前端 未结 3 501
南笙
南笙 2021-01-31 20:45

I am playing a little bit with functional programming and the various concepts of it. All this stuff is very interesting. Several times I have read about Currying and what an ad

3条回答
  •  鱼传尺愫
    2021-01-31 21:15

    The advantage of using currying is largely to be found in functional languages, which are built to benefit from currying, and have a convenient syntax for the concept. C# is not such a language, and implementations of currying in C# are usually difficult to follow, as is the expression HigherOrder.GetFilter().Curry()(IsPrime).

提交回复
热议问题