foldLeftWithIndex<A, B> method

B foldLeftWithIndex<A, B>(
  1. F fa,
  2. B z,
  3. B f(
    1. B previous,
    2. int i,
    3. A a
    )
)

Implementation

B foldLeftWithIndex<A, B>(F fa, B z, B f(B previous, int i, A a)) => foldLeft(fa, tuple2(z, 0), (Tuple2<B, int> t, A a) => tuple2(f(t.value1, t.value2, a), t.value2+1)).value1;