Concatenation
Syntax
concat($s1, $s2, ..., $sN)
Description
Merge the given sets or single values into a set. This can be used to add new elements to a set, since sets are otherwise not editable.
If all parts are scalar values, the expression is equivalent to list($s1, $s2, ..., $sN)
(see List from single values).
Otherwise the expression is also equivalent to list($s1, $s2, ..., $sN).flatten()
(see Flatten).
Parameter
Name | Type | Description | Mandatory | Default |
---|---|---|---|---|
s | Number/string/boolean/business object/set | Sets or single values that are to be combined to a set. | yes |
Return value
Type: Set
A set containing all specified parameters.
Examples
Concatenation of two lists
concat(list(1, 2, 3), list(4, 5, 6))
Output: A set with the elements [1, 2, 3, 4, 5, 6].
Concatenation of lists and scalar values
concat(list(1, 2, 3), 4, 5, "and so on")
Output: A set with the elements [1, 2, 3, 4, 5, "and so on"].