foldLeft<B> method
- B initialValue,
- B f(
- B b,
- 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
.
Implementation
B foldLeft<B>(B initialValue, B Function(B b, T t) f) =>
fold(initialValue, f);