Returns a new NSExpression
object that represent the intersection of a given set and collection.
SDKs
- iOS 3.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
init(forIntersectSet left: NSExpression, with right: NSExpression)
Parameters
left
An expression that evaluates to an
NSSet
object.right
An expression that evaluates to a collection object (an instance of
NSArray
,NSSet
, orNSDictionary
).
Return Value
A new NSExpression
object that represents the intersection of left
and right
.