The union function finds the union of sets

Description

The union function finds the union of sets

Example

Find the disk space task from all test instances and disk capacity task from all production instances, and their version

union(
   instance[name like '%test%']/task[name like '%disk space%'], 
   instance[name like '%prod%']/task[name like '%disk cap%']
)->t{}/$t/version

Syntax

union(expression, expression, ..)

Parameters

Type Description
Expresssion Expression that gives a set of values