Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 1691c4e

Browse files
Joe Haninkpetebacondarwin
Joe Hanink
authored andcommitted
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
1 parent 7fec4ba commit 1691c4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Angular.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,8 @@ function sliceArgs(args, startIndex) {
785785
* @description
786786
* Returns a function which calls function `fn` bound to `self` (`self` becomes the `this` for
787787
* `fn`). You can supply optional `args` that are prebound to the function. This feature is also
788-
* known as [function currying](http://en.wikipedia.org/wiki/Currying).
788+
* known as [partial application](http://en.wikipedia.org/wiki/Partial_application), as distinguished
789+
* from [function currying](http://en.wikipedia.org/wiki/Currying#Contrast_with_partial_function_application).
789790
*
790791
* @param {Object} self Context which `fn` should be evaluated in.
791792
* @param {function()} fn Function to be bound.

0 commit comments

Comments
 (0)