foldLeftWithIndexBetween<B> method

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

Implementation

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