init(leftExpression:rightExpression:modifier:type:options:)
Creates a predicate to a specified type that you form by combining specified left and right expressions using a specified modifier and options.
Declaration
init(leftExpression lhs: NSExpression, rightExpression rhs: NSExpression, modifier: NSComparisonPredicate.Modifier, type: NSComparisonPredicate.Operator, options: NSComparisonPredicate.Options = [])Parameters
- lhs:
The left hand expression.
- rhs:
The right hand expression.
- modifier:
The modifier to apply.
- type:
The predicate operator type.
- options:
The options to apply (see Options Swift.struct). For no options, pass
0.
Return Value
The receiver, initialized to a predicate of type type formed by combining the left and right expressions using the modifier and options.