OCLOperators symmetricDifference
No edit summary
No edit summary
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
The symmetric difference between the collections; ie all the objects in collection1 or collection2 but not in both.
<message>Write the content here to display this box</message>
The symmetric difference between the collections; i.e. all the objects in collection1 or collection2 but not in both.


Practical to use if you need to ask if two collections are equal - if they are, SymmentricDifference returns an empty collection.
Practical to use if you need to ask if two collections are equal. If they are, symmentricDifference returns an empty collection.
[[File:2021-05-27 14h55 49.png|none|thumb]]
[[File:2021-05-27 14h55 49.png|none|thumb]]


See: [[Examples on collection operators|Explaining samples]]
'''See''': [[Documentation:Examples on collection operators|Examples on collection operators]]
 
====== See also: [[Documentation:OCLOperators difference|OCLOperators_difference]] ======
 
===== Video: [https://youtu.be/2imigV8cAXI?si=zd-lOfMXptwDOYAC OCL Operators: symmetricDifference] =====
[[Category:OCL Collection Operators]]
[[Category:OCL Collection Operators]]
{{Edited|July|12|2025}}

Latest revision as of 05:57, 23 January 2025

This page was created by Alexandra on 2017-08-14. Last edited by Stephanie@mdriven.net on 2025-01-23.

The symmetric difference between the collections; i.e. all the objects in collection1 or collection2 but not in both.

Practical to use if you need to ask if two collections are equal. If they are, symmentricDifference returns an empty collection.

2021-05-27 14h55 49.png

See: Examples on collection operators

See also: OCLOperators_difference
Video: OCL Operators: symmetricDifference