splitBefore method

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

Splits this collection into chunks before elements satisfying test reactively.

  • test: Predicate identifying chunk boundary elements.

Implementation

Bloom<List<List<E>>> splitBefore(bool Function(E element) test) =>
    computed((via) => List<List<E>>.unmodifiable(
          via(bloom).splitBefore(test).map((s) => List<E>.unmodifiable(s)),
        ));