subtract
Short summary
overwrites the content of this set with the set difference of this set and the given set Set difference: Elements present in one set but not in the other.
Example: Set A = 4 Set B = 4
Set difference (A - B): 2 Set difference (B - A): 6
Return: SingleExecutionResult.SUCCESS: if insert could made, error if object was already in the tree,
```SingleExecutionResult.ABORTED``: foreign set wasn't valid
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| set | CNM_CollectionInterfaces.ISet | foreign set to construct substraction | input |
Code
Declaration
METHOD subtract : CNM_CollectionInterfaces.CNM_ReturnTypes.SingleExecutionResult
VAR_INPUT
(*foreign set to construct substraction*)
set : CNM_CollectionInterfaces.ISet;
END_VAR
Implementation
subtract := THIS^.set.instantSubtract(set := set);