whereIndexed method

Bloom<List<E>> whereIndexed(
  1. bool test(
    1. int index,
    2. E element
    )
)

Filters elements of this collection based on an indexed predicate test reactively.

  • test: Indexed predicate returning true for elements to retain.

Implementation

Bloom<List<E>> whereIndexed(bool Function(int index, E element) test) =>
    computed((via) => List.unmodifiable(via(bloom).whereIndexed(test)));