foldLeftWithIndex<B> method

B foldLeftWithIndex<B>(
  1. B z,
  2. B f(
    1. B previous,
    2. int i,
    3. R r
    )
)

Implementation

B foldLeftWithIndex<B>(B z, B Function(B previous, int i, R r) f) =>
    fold((_) => z, (R a) => f(z, 0, a));