Closures and Partial Application
Learn how to use closures to create partial applications of functions.
We'll cover the following
This is the first of two chapters that will cover some additional techniques used in functional programming.
In this chapter, we will revisit closures and composition and also look at partial application and currying. These are all ways to create a new function from an existing function.
In the next chapter, we will look at functors and monads. In addition, we will look at some functions offered by the PyMonad
library that can do a lot of the work for you.
Get hands-on with 1400+ tech skills courses.