foldLeftFirstWithIndex<C> method
Return value of type C
by calling f
with b
and the first value of the Tuple2.
Implementation
C foldLeftFirstWithIndex<C>(C c, C Function(int i, C c, T1 b) f) =>
foldLeftFirst<Tuple2<C, int>>(
Tuple2(c, 0),
(t, a) => Tuple2(f(t.second, t.first, a), t.second + 1),
).first;