foldRightWithIndex<A, B> method
Implementation
B foldRightWithIndex<A, B>(F fa, B z, B f(int i, a, B previous)) => foldRight(fa, tuple2(z, length(fa)-1), (a, Tuple2<B, int> t) => tuple2(f(t.value2, a, t.value1), t.value2-1)).value1;