|
| GroupBy () |
|
| GroupBy (Selector selector) |
|
template<class Source , class Value , class Gen = Generator<Value, Source>> |
Gen | compose (GenImpl< Value, Source > &&source) const |
|
template<class Source , class Value , class Gen = Generator<Value, Source>> |
Gen | compose (const GenImpl< Value, Source > &source) const |
|
ResultGen | compose (const GenImpl< Value, Source > &source) const |
|
const Self & | self () const |
|
Self & | self () |
|
template<class Selector>
class folly::gen::detail::GroupBy< Selector >
GroupBy - Group values by a given key selector, producing a sequence of groups.
This type is usually used through the 'groupBy' helper function, like:
auto bests = from(places) | groupBy([](const Place& p) { return p.city; }) | [](Group<std::string, Place>&& g) { cout << g.key() << ": " << (g | first).description; };
Definition at line 1145 of file Base-inl.h.