Instance Method

filteredOrderedSetUsingPredicate:

Evaluates a given predicate against each object in the receiving ordered set and returns a new ordered set containing the objects for which the predicate returns true.

Declaration

- (NSOrderedSet<ObjectType> *)filteredOrderedSetUsingPredicate:(NSPredicate *)p;

Parameters

predicate

The predicate against which to evaluate the receiving ordered set’s elements.

Return Value

A new ordered set containing the objects in the receiving ordered set for which predicate returns true.

Discussion

For more details, see Predicate Programming Guide.