Logo

Programming-Idioms

History of Idiom 37 > diff from v39 to v40

Edit summary for version 40 by droud:
New Csharp implementation by user [droud]

Version 39

2019-09-26, 16:59:21

Version 40

2019-09-26, 17:20:27

Idiom #37 Currying

Transform a function that takes multiple arguments into a function for which some of the arguments are preset.

Idiom #37 Currying

Transform a function that takes multiple arguments into a function for which some of the arguments are preset.

Extra Keywords
curry
Extra Keywords
curry
Code
Func<A, C> curry<A, B, C>(Func<A, B, C> f, B value) => (A a) => f(a, value);
Comments bubble
Lambda syntax.