OCL Operators isUnique
(Adding message template to the top of the page)
(Replacing message template with parser tag)
Line 1: Line 1:
{{message|Write the content here to display this box}}
<message>Write the content here to display this box</message>
=== isUnique ( expr : OclExpression ) : Boolean ===
=== isUnique ( expr : OclExpression ) : Boolean ===
Returns true if all elements contained in ''self'' evaluate to a distinct value for ''expr''.
Returns true if all elements contained in ''self'' evaluate to a distinct value for ''expr''.

Revision as of 07:53, 17 June 2024

This page was created by Stephanie@mdriven.net on 2023-03-28. Last edited by Edgar on 2025-01-20.

isUnique ( expr : OclExpression ) : Boolean

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