k06a / boolinq

Simplest C++ header-only LINQ template library
MIT License
628 stars 79 forks source link

Multi keys GroupBy #69

Closed SirusDoma closed 10 months ago

SirusDoma commented 2 years ago

First of all, thanks for the awesome library!
I do have question about Grouping. In C#, I able to group a collection with multiple keys via anonymous object, here's an example: https://github.com/SirusDoma/O2MusicBox/blob/master/Source/CXO2/Processors/Encoders/O2Jam/OJNEncoder.cs#L38

In above example, I'm using anonymous object from 3 properties of the original object. I'm now wondering, is it possible to do the same thing with boolinq?

k06a commented 2 years ago

Did you try to return tuple for this? Could work potentially :)