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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software