retainWhere method

ISet<T> retainWhere(
  1. Predicate<T> test
)

Removes all elements of this set that fail to satisfy test.

Implementation

ISet<T> retainWhere(Predicate<T> test) {
  return ISet._unsafeFromSet(unlock..retainWhere(test), config: config);
}