splitBefore method

Coral<List<List<E>>> splitBefore(
  1. bool test(
    1. E element
    )
)

Splits this collection into chunks before elements satisfying test reactively.

Implementation

Coral<List<List<E>>> splitBefore(bool Function(E element) test) =>
    coral.map((source) => List<List<E>>.unmodifiable(
          source.splitBefore(test).map((s) => List<E>.unmodifiable(s)),
        ));