Closed Elscha closed 6 years ago
"Intersections" are already defined, but only for sequences
, cf. overlaps
and isSubsequenceOf
in IVML Language Specification, page 55
What about Container#includesAll, IVML LanguageSpec, page 57? No subset so far, even not after OCL alignment, but may be added if really needed.
Operations seems to be sufficient for now as long as we do not really have a strong case. Adding convenience operations to the IVML standard library would be another option without modifying the implementation itself. Closing for now.
It would be helpful to have a isSubSet or even better contains( collection) method for collections available in IVML. Currently such constraits can only be realized via a combination of intersection and equality checks, e.g.:
This becomes much more ugly if one or both variables are sequences... CC: @eichelbe