3 ms·
if you were to program in JS in a style which calls for passing operations around you would have the operator `+` wrapped, so the second version would probably
by ta0967 11y ago
if you were to program in JS in a style which calls for passing operations around you would have the operator `+` wrapped, so the second version would probably look like this
var sum = range(100).reduce(0, plus);
or rather
var total = sum(range(100));
this does not take away from the beauty of APL.