anyIndexed method

Coral<bool> anyIndexed(
  1. bool test(
    1. int index,
    2. E element
    )
)

Returns true if any element satisfies an indexed predicate test reactively.

Implementation

Coral<bool> anyIndexed(bool Function(int index, E element) test) => coral
    .map((source) => source.indexed.any((pair) => test(pair.$1, pair.$2)));