OCL Operators isUnique
This page was created by Stephanie on 2023-03-28. Last edited by Wikiadmin on 2026-09-12.
isUnique ( expr : OclExpression ) : Boolean[edit source]
Returns true if all elements contained in self evaluate to a distinct value for expr.
| Expression | Result |
|---|---|
| Sequence{2.3, 5.2}->isUnique(self > 3) | true |
| Sequence{2.3, 5.2}->isUnique(self > 1) | false |
