diff options
| author | Joe Hanink | 2013-10-02 15:52:33 -0700 | 
|---|---|---|
| committer | Pete Bacon Darwin | 2013-10-03 23:37:09 +0100 | 
| commit | 1691c4e9a3a87268e00e48d04afb79a926742ea4 (patch) | |
| tree | bec0ab2c51601e4f3aeea444a58373a0eb47fb16 /src/Angular.js | |
| parent | 7fec4bae804934ea17f62e190081ea66de450b31 (diff) | |
| download | angular.js-1691c4e9a3a87268e00e48d04afb79a926742ea4.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
Diffstat (limited to 'src/Angular.js')
| -rw-r--r-- | src/Angular.js | 3 | 
1 files changed, 2 insertions, 1 deletions
| 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. | 
