Skip to content

Commit 3ccb4aa

Browse files
artem-karpenkotimoxley
authored andcommitted
Corrected order of arguments in the currying example
1 parent f1fa384 commit 3ccb4aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

exercises/currying/problem.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ This is an example implementation of `curry3`, which curries up to 3 arguments:
22

33
```js
44
function curry3(fun){
5-
return function(three){
5+
return function(one){
66
return function(two){
7-
return function (one){
7+
return function (three){
88
return fun(one, two, three)
99
}
1010
}
@@ -24,10 +24,10 @@ It would work like so:
2424

2525
```js
2626
var curryC = curry3(abc)
27-
var curryB = curryC(2)
27+
var curryB = curryC(6)
2828
var curryA = curryB(3)
2929

30-
console.log(curryA(6)) // => 1
30+
console.log(curryA(2)) // => 1
3131
```
3232

3333
# Task

0 commit comments

Comments
 (0)