C# lambda - curry usecases

后端 未结 6 1731
小蘑菇
小蘑菇 2021-01-31 12:04

I read This article and i found it interesting.

To sum it up for those who don\'t want to read the entire post. The author implements a higher order function named Curry

6条回答
  •  一整个雨季
    2021-01-31 12:41

    In a sense, curring is a technique to enable automatic partial application.

    More formally, currying is a technique to turn a function into a function that accepts one and only one argument.

    In turn, when called, that function returns another function that accepts one and only one argument . . . and so on until the 'original' function is able to be executed.

    from a thread in codingforums

    I particularly like the explanation and length at which this is explained on this page.

提交回复
热议问题