Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Now that we've seen how function contexts work, we can revisit the subject of pa
})
})

`Function.prototype.bind` can sometimes be used to accomplish the same thing, but will be much faster. For example, instead of:
`Function.prototype.bind` can sometimes be used to accomplish the same thing, and will be much faster. For example, instead of:

function add (verb, a, b) {
return "The " + verb + " of " + a + ' and ' + b + ' is ' + (a + b)
Expand Down Expand Up @@ -109,4 +109,4 @@ And from there we can curry a function with three arguments:
//=> 'The sum of 5 and 6 is 11'

We'll develop a generalized curry function in the recipes. But to summarize the difference between currying and partial application, currying is an operation that transforms a function taking two or more arguments into a function that takes a single argument and partially applies it to the function and then curries the rest of the arguments.