foldLeftWithIndex<C> method

  1. @override
C foldLeftWithIndex<C>(
  1. C c,
  2. C f(
    1. int i,
    2. C acc,
    3. R b

Return the result of f called with b and the value of Right. If this Either is Left, return b.


C foldLeftWithIndex<C>(C c, C Function(int i, C acc, R b) f) =>
    foldLeft<Tuple2<C, int>>(
      Tuple2(c, 0),
      (t, b) => Tuple2(f(t.second, t.first, b), t.second + 1),