OCLOperators Sequence
(Automatically adding template at the end of the page.)
(Replacing message template with parser tag)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<message>Write the content here to display this box</message>
This creates a sequence (collection) of your choosing.
This creates a sequence (collection) of your choosing.



Latest revision as of 07:49, 17 June 2024

This creates a sequence (collection) of your choosing.

Integers

If you need a sequence of numbers for iteration or numbering, use Sequence

Sequence{0..20}

It will create a collection of integers.

Strings
Sequence{'String', 'EmailAddress'}

It's not necessary to use Sequence for this - Set or Bag works equally well.

If you want to create a list of arbitrary numbers, you can use the Set operator.

(Might also be called an array or list.)

This page was edited 95 days ago on 06/17/2024. What links here