in reply to RFC: Array::GroupBy

I do not see a reason to disallow empty group_by.

What about passing the whole records to the custom (code reference) agregators for some specially named group_how options? Eg.

... group_how => { '&foo' => sub { my ( $result, $rec) = @_; return $result + $rec->{a} * $rec->{b} }, ...
producing a new attribute named 'foo' in the resulting records.