Merge pull request #414 from vovik/master

doc for bind: currying vs partial application
This commit is contained in:
Jeremy Ashkenas
2012-01-04 12:28:04 -08:00

View File

@@ -715,7 +715,7 @@ _.range(0);
Bind a <b>function</b> to an <b>object</b>, meaning that whenever
the function is called, the value of <i>this</i> will be the <b>object</b>.
Optionally, bind <b>arguments</b> to the <b>function</b> to pre-fill them,
also known as <b>currying</b>.
also known as <b>partial application</b>.
</p>
<pre>
var func = function(greeting){ return greeting + ': ' + this.name };