foldLeftWithIndex<C> method
Return value of type C
by calling f
with b
and the second value of the Tuple2.
Implementation
@override
C foldLeftWithIndex<C>(C c, C Function(int i, C acc, T2 b) f) =>
foldLeft<Tuple2<C, int>>(
Tuple2(c, 0),
(t, a) => Tuple2(f(t.second, t.first, a), t.second + 1),
).first;