Closures and Partial Application

Learn how to use closures to create partial applications of functions.

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 1200+ tech skills courses.