foldRightWithIndexBetween<B> method

B foldRightWithIndexBetween<B>(
  1. int minIndex,
  2. int maxIndex,
  3. B z,
  4. B f(
    1. int index,
    2. A a,
    3. B previous
    ),
)

Implementation

B foldRightWithIndexBetween<B>(int minIndex, int maxIndex, B z, B f(int index, A a, B previous)) =>
    _elementsByIndex.foldRightKVBetween(_offset+minIndex, _offset+maxIndex, z, (i, a, previous) => f(i-_offset, a, previous));