I really like the GPath idea, sadly, i have many other math functions besides sum that i need to use, so I'll put it on LIST and not arraylist. Thank you!
Gerald R. Wiltse jerrywil...@gmail.com On Thu, Feb 18, 2016 at 2:28 PM, Alexander Klein <i...@aklein.org> wrote: > If your calculations need the List, put it to List, not the ArrayList, but > check inside if all elements are of type GroovyMbeans. > If you can go with GPath like e.g. list.doIt().sum() that returns a List > with all the results of doIt and then sums it, then put it to GroovyMbeans > directly. > > Regards, > Sascha > > > Am 18.02.2016 um 18:26 schrieb Gerald Wiltse: > > I want to do a bunch of calculations and combinations around collections > of GroovyMbeans. I want to add these "Functions/Formulas" as methods. > Would it be wiser to add these to the ArrayList class, or to GroovyMbean > class? > > Regards, > Jerry > > Gerald R. Wiltse > jerrywil...@gmail.com > > >