5 ms·
I'd blame this problem on gem writers monkeypatching base functionality. Why not use the Array.map and pass it a summing block? That way if you've got an array
by warfangle 18y ago
I'd blame this problem on gem writers monkeypatching base functionality.
Why not use the Array.map and pass it a summing block? That way if you've got an array of things other than numbers, you can correctly utilize the strategy pattern to sum them....