News for hackers. Stuff that matters.
Re:My Objection to Array#sum by omouse on Thursday April 09, 2009 @07:05PM (#555344)
How about create a method called detectSum that accepts a block as an argument. The block will return the specific field to use when summing.

This lets you skip subclassing.

There are no comments on this comment yet.