Instance Method

filtered(using:)

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

func filtered(using p: NSPredicate) -> NSOrderedSet

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.