I got a list of RegionGroup objects with two properties: an int "number" and a list<> of "Regions".
I need to output a distribution of number of Region objects combined for each number. For example, given:
[Region 1] - number: 1 - list<> has 5 members
[Region 2] - number: 3 - list<> has 2 members
[Region 3] - number: 4 - list<> has 9 members
[Region 4] - number: 1 - list<> has 5 members
[Region 5] - number: 3 - list<> has 4 members
I need to get something like:
number:1 - total 10 members
number:3 - total 6 members
number:4 - total 9 members
I've been messing around with various tutorials, and I think I need to use groups, but I couldn't quite get anything working.
Any help? Thanks!