From the course: Advanced C#: Functional Programming Patterns

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Composition patterns

Composition patterns

- [Narrator] Programming is a constant endeavor to separate code into logical silos. Once we have the functions written and tested, we combine them together to do our work. How we mix together the function calls is a fundamental part of programming. This chapter is an overview of the three types of function composition patterns promoted in functional programming. I'm talking about functional composition, currying and pipelining. Composition is a term you might have heard. We use it a lot in programming conversations. In general it means to put together programming bits like classes or namespaces into a coherent ensemble. In functional programming, it has a more explicit meaning. It's about combining functions into a new function. Then we can call this new function and the results are from the combination. This is not groundbreaking. It's just one of the composition patterns in functional programming. You'll see what I…

Contents