foldRightWithIndex<B> method

B foldRightWithIndex<B>(
  1. B z,
  2. B f(
    1. int i,
    2. R r,
    3. B previous
    )
)

Implementation

B foldRightWithIndex<B>(B z, B Function(int i, R r, B previous) f) =>
    fold((_) => z, (R a) => f(0, a, z));