mirror of
https://github.com/rjNemo/functional-programming-jargon
synced 2026-06-06 02:26:43 +00:00
Fixes a tiny spelling error under auto currying. (#107)
This commit is contained in:
parent
8d10ce9b32
commit
eb4481cac9
1 changed files with 3 additions and 3 deletions
|
|
@ -154,9 +154,9 @@ Underscore, lodash, and ramda have a `curry` function that works this way.
|
|||
const add = (x, y) => x + y;
|
||||
|
||||
const curriedAdd = _.curry(add);
|
||||
curreiedAdd(1, 2) // 3
|
||||
curreiedAdd(1) // (y) => 1 + y
|
||||
curreiedAdd(1)(2) // 3
|
||||
curriedAdd(1, 2) // 3
|
||||
curriedAdd(1) // (y) => 1 + y
|
||||
curriedAdd(1)(2) // 3
|
||||
```
|
||||
|
||||
__Further reading__
|
||||
|
|
|
|||
Loading…
Reference in a new issue