This functionality is only available for certain module packages.

Generating Collections

In most cases collections are returned from methods (see method mos). If in contrast collections should be created explicitly, the following syntax is used:

<Collection-Type>{<Object1>,<Object2>,...}

For <Collection-type, <List>, <Set> or <Bag> should be used.

Examples of generating collections are given in the following table:

Example formula Result
List {1,2,3} [1, 2, 3]
List {1,2,3.3} [1, 2, 3, 3]
List {1,2,3,3,List{4,5}} [1, 2, 3, 3, [4, 5]]
Set {1,2,3} [2, 1, 3]
Set {1,2,3.3} [2, 1, 3]
Set{1,2,3,3,List{4,5}} [1, 2, 3, [4, 5]]
Bag {1,2,3,3} [2, 1, 3, 3]