We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8c0f7b commit d609782Copy full SHA for d609782
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