OCLOperators maxValue
(Created page with "Returns the highest (maximum) value from a collection of simple value objects")
 
(Replacing message template with parser tag)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Returns the highest (maximum) value from a collection of simple value objects
<message>Write the content here to display this box</message>
Returns the highest (maximum) value from a collection of simple value objects.
{| class="wikitable"
!Expression
!Result
|-
|(Bag{3, 2, 1, 6})->maxValue
|6
|-
|Bag{DateTime.Parse('2019-01-01'), DateTime.Parse('2018-12-01')}->maxValue
|'2019-01-01'
|}
[[Category:OCL General Operators]]
{{Edited|July|12|2024}}

Latest revision as of 07:51, 17 June 2024

Returns the highest (maximum) value from a collection of simple value objects.

Expression Result
(Bag{3, 2, 1, 6})->maxValue 6
Bag{DateTime.Parse('2019-01-01'), DateTime.Parse('2018-12-01')}->maxValue '2019-01-01'
This page was edited 94 days ago on 06/17/2024. What links here