This chapter covers
- Understanding partial function application
- Fixing function arguments to specific values with
- Using lambdas for partial function application
- Are all functions in the world unary?
- Creating functions that operate on collections of items
Most programming paradigms tend to provide a way to increase code reusability. In the object-oriented world, we create classes we can later use in various situations. We can use them directly or combine them to implement more-complex classes. The possibility of breaking complex systems into smaller components that can be used and tested separately is a powerful one.
In the same way that OOP gives you the tools to combine and modify types, ...