Skip to content

Commit 6cee3e2

Browse files
committed
Fix bad example
1 parent cf9b7ae commit 6cee3e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

JavaScript/6-curry-bad.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ const f = curry(sum4);
1616
const y1 = sum4(1, 2, 3, 4);
1717
const y2 = f(1, 2, 3, 4);
1818
const y3 = f(1, 2, 3)(4);
19-
const y4 = f(1, 2)(3)(4);
20-
const y5 = f(1)(2)(3)(4);
19+
//const y4 = f(1, 2)(3)(4);
20+
//const y5 = f(1)(2)(3)(4);
2121
const y6 = f(1)(2, 3, 4);
22-
const y7 = f(1)(2)(3, 4);
22+
//const y7 = f(1)(2)(3, 4);
2323
const y8 = f(1, 2)(3, 4);
24-
console.log(y1, y2, y3, y4, y5, y6, y7, y8);
24+
console.log(y1, y2, y3, y6, y8);

0 commit comments

Comments
 (0)