[WORK] groupBy is in! Next: aggregate

via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 26 08:44:19 PST 2015


On Monday, 26 January 2015 at 16:13:40 UTC, H. S. Teoh wrote:
> On Mon, Jan 26, 2015 at 11:26:04AM +0000, bearophile via 
> Digitalmars-d wrote:
>> Russel Winder:
>> 
>> >but is it's name "group by" as understood by the rest of the 
>> >world?
>> 
>> Nope...
> [...]
>
> I proposed to rename it but it got shot down. *shrug*

Andrei had a point about `partition` being used already. I liked 
Oliver's suggestion to go with slice-something. `sliceBy` might 
be worth considering. It even hints at the (efficient) 
implementation.


More information about the Digitalmars-d mailing list