🚀 Welcome to MDriven Learn –  MDriven is now on Discord!  Don’t miss the latest Release Notes.
OCLOperators Sequence
This page was created by Lars.olofsson on 2017-05-25. Last edited by 62.169.16.147 on 2026-09-12.

This creates a sequence (collection) of your choosing.

Integers[edit source]

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

Sequence{0..20}

It will create a collection of integers.

Strings[edit source]
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.)