Skip to main content

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

NameTypeCommentKind
setCNM_CollectionInterfaces.ISetforeign set to construct substractioninput

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);