splitBetweenIndexed method

Bloom<List<List<E>>> splitBetweenIndexed(
  1. bool test(
    1. int index,
    2. E first,
    3. E second
    )
)

Splits this collection into chunks between elements satisfying an indexed predicate test reactively.

  • test: Indexed predicate evaluated on adjacent element pairs.

Implementation

Bloom<List<List<E>>> splitBetweenIndexed(
        bool Function(int index, E first, E second) test) =>
    computed((via) => List<List<E>>.unmodifiable(
          via(bloom)
              .splitBetweenIndexed(test)
              .map((s) => List<E>.unmodifiable(s)),
        ));