reduceIndexed method

Coral<E> reduceIndexed(
  1. E combine(
    1. int index,
    2. E previous,
    3. E element
    )
)

Reduces this collection to a single value by iteratively combining elements along with their index reactively.

Implementation

Coral<E> reduceIndexed(
        E Function(int index, E previous, E element) combine) =>
    coral.map((source) => source.reduceIndexed(combine));