Skip to content

Commit d609782

Browse files
committed
Minimal recursive
1 parent a8c0f7b commit d609782

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

JavaScript/c-adder.js

+6
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)