We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69bd76f commit a6bf0ecCopy full SHA for a6bf0ec
JavaScript/c-adder.js
@@ -0,0 +1,6 @@
1
+'use strict';
2
+
3
+const adder = a => ({ value: () => a, add: b => adder(a + b) });
4
5
+const v = adder(3).add(-9).add(12).value();
6
+console.log(v);
0 commit comments