folly::gen::mapOp

mapOp - Given a generator of generators, maps the application of the given operator on to each inner gen. Especially useful in aggregating nested data structures:

Synopsis

Declared in <folly/gen/Base.h>

template<
    class Operator,
    class Map = /* implementation-defined */>
Map
mapOp(Operator op);

Description

chunked(samples, 256) | mapOp(filter(sampleTest) | count) | sum;

Return Value

An operator that applies op to every inner generator.

Parameters

NameDescription
opThe operator applied to each inner generator.