OCLOperators symmetricDifference
No edit summary
(Updated Edited template to July 12, 2025.)
Line 11: Line 11:
===== Video: [https://youtu.be/2imigV8cAXI?si=zd-lOfMXptwDOYAC OCL Operators: symmetricDifference] =====
===== Video: [https://youtu.be/2imigV8cAXI?si=zd-lOfMXptwDOYAC OCL Operators: symmetricDifference] =====
[[Category:OCL Collection Operators]]
[[Category:OCL Collection Operators]]
{{Edited|July|12|2024}}
{{Edited|July|12|2025}}

Revision as of 05:59, 20 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