folly::gen::foldl

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

NameDescription
seedThe initial accumulator value.
foldThe binary operation combining the accumulator and each value.