mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-11 13:06:42 +00:00
Merge pull request #3 from ericelliott/patch-1
Clarify the difference between partial application and curry
This commit is contained in:
commit
512fed846b
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ partial(2); //=> 42
|
||||||
---
|
---
|
||||||
|
|
||||||
## Currying
|
## Currying
|
||||||
> The process of converting a function with multiple arity into the same function with less arity.
|
> The process of converting a function with multiple arity into the same function with an arity of one. Not to be confused with partial application, which can produce a function with an arity greater than one.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
let sum = (a,b) => a+b;
|
let sum = (a,b) => a+b;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue