|
| Distinct ()=default |
|
| Distinct (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::Distinct< Selector >
Distinct - For filtering duplicates out of a sequence. A selector may be provided to generate a key to uniquify for each value.
This type is usually used through the 'distinct' helper function, like:
auto closest = from(results) | distinctBy([](Item& i) { return i.target; }) | take(10);
Definition at line 1347 of file Base-inl.h.