foldLeft<B> method

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

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

Same as standard fold.


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