OCLOperators Sequence
No edit summary
No edit summary
Line 1: Line 1:
Creates a sequence (collection) of your choosing.
===== Integers =====
If you need a sequence of numbers for iteration or numbering, use Sequence
If you need a sequence of numbers for iteration or numbering, use Sequence
  Sequence{0..20}
  Sequence{0..20}
Line 7: Line 10:
(might also be called an array or list)
(might also be called an array or list)


===== Strings =====
Sequence{'String', 'EmailAddress'}
[[Category:Operators]]
[[Category:Operators]]
[[Category:OCL]]
[[Category:OCL]]

Revision as of 10:02, 11 February 2021

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

Creates a sequence (collection) of your choosing.

Integers

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

Sequence{0..20}

Will create an collection of integers.

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

(might also be called an array or list)

Strings
Sequence{'String', 'EmailAddress'}
MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments