[WORK] groupBy is in! Next: aggregate

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Fri Jan 23 12:28:29 PST 2015


On 1/23/15 12:19 PM, Ary Borenszweig wrote:
> In most languages group by yields a tuple of {group key, group values}.

Interesting, thanks. Looks like we're at a net loss of information with 
our current approach.

@quickfur, do you think you could expose a tuple with "key" and 
"values"? The former would be the function value, the latter would be 
what we offer right now.

That would apply only to the unary version of groupBy.


Andrei



More information about the Digitalmars-d mailing list