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

Commit a4dc21e

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 ec93f94 commit a4dc21e

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
@@ -763,7 +763,8 @@ function sliceArgs(args, startIndex) {
763763
* @description
764764
* Returns a function which calls function `fn` bound to `self` (`self` becomes the `this` for
765765
* `fn`). You can supply optional `args` that are prebound to the function. This feature is also
766-
* known as [function currying](http://en.wikipedia.org/wiki/Currying).
766+
* known as [partial application](http://en.wikipedia.org/wiki/Partial_application), as distinguished
767+
* from [function currying](http://en.wikipedia.org/wiki/Currying#Contrast_with_partial_function_application).
767768
*
768769
* @param {Object} self Context which `fn` should be evaluated in.
769770
* @param {function()} fn Function to be bound.

0 commit comments

Comments
 (0)