extractIf method

RIterator<T> extractIf(
  1. bool f(
    1. T
    )
)

Creates an RIterator which uses a closure to determine if an element should be removed. If the closure returns true, then the element is removed and yielded. If the closure returns false, the element will remain in the vector and will not be yielded by the iterator.

Implementation

@pragma('vm:prefer-inline')
RIterator<T> extractIf(bool Function(T) f) =>
    RIterator.fromIterable(ExtractIfIterable(this, f));