Content pfp
Content
@
0 reply
0 recast
2 reactions

christopher pfp
christopher
@christopher
not sure why currying doesn’t get as much love — it’s as easy as generators or memoization in practice
4 replies
0 recast
2 reactions

Greg pfp
Greg
@greg
seems confusing
1 reply
0 recast
1 reaction

christopher pfp
christopher
@christopher
before: function sum(a, b) { return a + b; } alert(sum(2, 3)); // 5 alert(sum(2, 5)); // 7 after: let addTwo = curriedSum(2); alert(addTwo(3)); // 5 alert(addTwo(5)); // 7
0 reply
0 recast
1 reaction