foldLeftWithIndex<B> method
Implementation
B foldLeftWithIndex<B>(B b, B Function(int i, B acc, A a) f) =>
foldLeft<Tuple2<B, int>>(
Tuple2(b, 0),
(t, a) => Tuple2(f(t.second, t.first, a), t.second + 1),
).first;
B foldLeftWithIndex<B>(B b, B Function(int i, B acc, A a) f) =>
foldLeft<Tuple2<B, int>>(
Tuple2(b, 0),
(t, a) => Tuple2(f(t.second, t.first, a), t.second + 1),
).first;