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