From 1691c4e9a3a87268e00e48d04afb79a926742ea4 Mon Sep 17 00:00:00 2001 From: Joe Hanink Date: Wed, 2 Oct 2013 15:52:33 -0700 Subject: 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 --- src/Angular.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Angular.js') diff --git a/src/Angular.js b/src/Angular.js index ad281504..b7d77437 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -785,7 +785,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. -- cgit v1.2.3