aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Hanink2013-10-02 15:52:33 -0700
committerPete Bacon Darwin2013-10-03 23:46:24 +0100
commita4dc21ebf53165c70c49c300174714e0921af510 (patch)
tree82be7202b7e11954b40b5194f5697b3d7ce003b8
parentec93f94cc944e86da5a7332e079e140a4ef33ea6 (diff)
downloadangular.js-a4dc21ebf53165c70c49c300174714e0921af510.tar.bz2
docs(angular.bind): clarify that bind is partial application
The `angular.bind` function reflects the definition of "partial application", which reduces a function's arity rather than transforming a function with n args into a chain of n functions, each having a single arg. curry : f(x,y,z) -> f(x)(y)(z) partial application : f(x,y,z) -> f(x)(y,z) Closes #4239
-rw-r--r--src/Angular.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Angular.js b/src/Angular.js
index 2cd3cc94..38f30c50 100644
--- a/src/Angular.js
+++ b/src/Angular.js
@@ -763,7 +763,8 @@ function sliceArgs(args, startIndex) {
* @description
* Returns a function which calls function `fn` bound to `self` (`self` becomes the `this` for
* `fn`). You can supply optional `args` that are prebound to the function. This feature is also
- * known as [function currying](http://en.wikipedia.org/wiki/Currying).
+ * known as [partial application](http://en.wikipedia.org/wiki/Partial_application), as distinguished
+ * from [function currying](http://en.wikipedia.org/wiki/Currying#Contrast_with_partial_function_application).
*
* @param {Object} self Context which `fn` should be evaluated in.
* @param {function()} fn Function to be bound.