Skip to content

Commit 57fc81c

Browse files
committed
Merge pull request chuanxshi#14 from trico/master
Fix currying
2 parents 75b2d11 + 9cdff04 commit 57fc81c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

function-patterns/currying.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@
7474
if (typeof oldy === "undefined") { // partial
7575
return function (newy) {
7676
return oldx + newy;
77-
}
78-
// full application
79-
return x + y;
77+
}
8078
}
79+
// full application
80+
return x + y;
8181
}
8282

8383
// test

0 commit comments

Comments
 (0)