9
Currying and Partial Application
Congratulations! You have already covered more than 90% of the book! You are awesome and I’m giving you a virtual high-five! In this chapter, we will talk about currying and partial application. I know there is a special keyword, partial, that allows us to split our class, struct, or interface into parts; however, in functional programming, partial application has a different meaning. Currying transforms a function with multiple arguments into a sequence of functions, each taking a single argument. This transformation allows for incremental application of arguments, where each step returns a new function awaiting the next input. Partial application, on the other hand, involves fixing a number of arguments to ...
Get Functional Programming with C# now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.