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