We've seen in the past chapters how to write pure functions and lambdas. These are the basic building blocks of functional programming. It's time to take them to the next level.
In this chapter, we will learn how to obtain more functions from existing functions, thus building complex behavior from the simple examples that we've looked at so far.
The following topics will be covered in this chapter:
- Composing functions in C++
- A basic decomposition strategy for functions with multiple arguments
- Removing duplication (or code similarity) using functional composition