Left-folds a sequence into a single value from an initial seed.
Declared in <folly/gen/Base.h>
template<
class Seed,
class Fold,
class FoldLeft = /* implementation-defined */>
FoldLeft
foldl(
Seed seed = Seed(),
Fold fold = Fold());
A sink yielding the folded value.
| Name | Description |
|---|---|
| seed | The initial accumulator value. |
| fold | The binary operation combining the accumulator and each value. |