k06a / boolinq

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

I would like to easily retrieve the grouping fields after grouping by multiple fields. #84

Open prehonor opened 6 months ago

prehonor commented 6 months ago
boolinq::from(top10)
    .groupBy([](const T& holder) {
        return std::make_tuple(holder.code, holder.date);  // something like this way
        // return holder.code + to_iso_extended_string(holder.date);  // Without using string concatenation methods
    })
    .select([](auto p){
        p.first.code;
        p.first.date
    });