foldLeft<B> method

B foldLeft<B>(
  1. B initialValue,
  2. B combine(
    1. B b,
    2. T t
    )
)

Fold this Iterable into a single value by aggregating each element of the list from the first to the last.

Equivalent to Iterable.fold.

Implementation

B foldLeft<B>(B initialValue, B Function(B b, T t) combine) =>
    fold(initialValue, combine);