union
array →
union(
array: array
) → array
Returns the distinct values appearing in either the pipeline input or the specified array, listing pipeline-input values first and argument-only values second while preserving order within each source. Returns null when the input cannot be evaluated.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
array | array | Yes | Specifies the second array whose values are combined with the pipeline input. |
Examples
{1, 2, 3} | union({2, 3, 4}) → {1, 2, 3, 4}
Kind: Function
Scope: array/set
Aliases: union