From 03a8531b57257e264006868206336e0061de0bc8 Mon Sep 17 00:00:00 2001 From: pansay Date: Sun, 17 Apr 2016 23:09:43 +0200 Subject: [PATCH] Update revisiting-partial.md --- .../markdown/Instances and Classes/revisiting-partial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manuscript/markdown/Instances and Classes/revisiting-partial.md b/manuscript/markdown/Instances and Classes/revisiting-partial.md index d13074c..6a82f22 100644 --- a/manuscript/markdown/Instances and Classes/revisiting-partial.md +++ b/manuscript/markdown/Instances and Classes/revisiting-partial.md @@ -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) @@ -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. - \ No newline at end of file +