OCLOperators Sequence
No edit summary
No edit summary
 
(5 intermediate revisions by 2 users 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.


Line 8: Line 9:
===== Strings =====
===== Strings =====
  Sequence{'String', 'EmailAddress'}
  Sequence{'String', 'EmailAddress'}
It's not necessary to use Sequence for this - [[OCLOperators Set|Set]] or [[OCLOperators Bag|Bag]] works equally well.
It's not necessary to use Sequence for this - [[Documentation:OCLOperators Set|Set]] or [[Documentation:OCLOperators Bag|Bag]] works equally well.


If you want to create a list of arbitrary numbers, you can use the [[OCLOperators Set|Set operator.]]
If you want to create a list of arbitrary numbers, you can use the [[Documentation:OCLOperators Set|Set operator.]]


(Might also be called an array or list.)
(Might also be called an array or list.)
[[Category:Operators]]
[[Category:Operators]]
[[Category:OCL]]
[[Category:OCL]]
{{Edited|July|12|2025}}

Latest revision as of 05:48, 4 February 2025

This page was created by Lars.olofsson@mdriven.net on 2017-05-25. Last edited by Stephanie@mdriven.net on 2025-02-04.

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.)

MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments