When to Use Currying?
Let’s look at the scenarios where you should make use of currying.
We'll cover the following
Currying vs. partial application
Currying and partial application both do similar jobs. We will use them both in an example using map
.
Here is the example using partial application (using the functools
partial
function):
Get hands-on with 1400+ tech skills courses.