OCLOperators Sequence
m ((username removed) (log details removed): Moving to Documentation namespace)
(Automatically adding template at the end of the page.)
 
Line 15: Line 15:
[[Category:Operators]]
[[Category:Operators]]
[[Category:OCL]]
[[Category:OCL]]
{{Edited|July|12|2024}}

Latest revision as of 15:40, 10 February 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 92 days ago on 02/10/2024. What links here