splitBetween method

Coral<List<List<E>>> splitBetween(
  1. bool test(
    1. E first,
    2. E second
    )
)

Splits this collection into chunks between elements satisfying test reactively.

Implementation

Coral<List<List<E>>> splitBetween(bool Function(E first, E second) test) =>
    coral.map((source) => List<List<E>>.unmodifiable(
          source.splitBetween(test).map((s) => List<E>.unmodifiable(s)),
        ));