filter method

ImmortalSet<T> filter(
  1. bool predicate(
    1. T value
    )
)

Returns a new set with all elements of this set that satisfy the given predicate.

See where.

Implementation

ImmortalSet<T> filter(bool Function(T value) predicate) => where(predicate);