merge()
Usage
merge(object...)
Description
Merges collections and objects into a single collection. This method can be used to add entities to a collection, or to merge multiple collections into a single one. All objects that are passed to this function will be added to the resulting collection. If a parameter is a collection, all objects of that collection are added to the resulting collection as well.
This method will not remove duplicate entries. Use merge_unique()
for that.
Example
${merge(1, 2, 3, 4, merge(3, 4, 5, 6))}
results in
[1.0, 2.0, 3.0, 4.0, 3.0, 4.0, 5.0, 6.0]