intersect
Short summary
overwrites the content of this set with the intersection of this set and the given set Set intersection: Common elements between two sets.
Example: Set A = 4 Set B = 4
Intersection of A and B: 4
Return: SingleExecutionResult.SUCCESS: if intersect is complete
SingleExecutionResult.ABORTED: foreign set wasn't valid
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| set | CNM_CollectionInterfaces.ISet | foreign set to intersect with | input |
Code
Declaration
METHOD intersect : CNM_CollectionInterfaces.CNM_ReturnTypes.SingleExecutionResult
VAR_INPUT
(*foreign set to intersect with*)
set : CNM_CollectionInterfaces.ISet;
END_VAR
Implementation
intersect := THIS^.set.instantIntersect(set := set);