Using #inject:into and Point objects to store the totals:
testMaleMeiosis4 | totals | totals := Forecaster testMale meiose inject: [EMAIL PROTECTED] into: [:subtotals :strand | subtotals + (strand maternalCount @ strand maternalCount)]. self should: [totals = [EMAIL PROTECTED] The point notation makes it look very clean (to me). Z stan shepherd wrote:
So until the next cunning suggestion
_______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners