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.
- iOS 5.0+
- macOS 10.7+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The predicate against which to evaluate the receiving ordered set’s elements.
A new ordered set containing the objects in the receiving ordered set for which
predicate returns true.
For more details, see Predicate Programming Guide.