But this requires one to do add3(1)(2)(3). I figured it was possible to transform functions more mechanically. The builtin "partial" function is a class that merely collects args in a list, so one can't incrementally apply a few more args at once like a real curry. It's more of a fancy lambda closure.
1 comment
[ 754 ms ] story [ 2404 ms ] thread