symmetric-difference
array →
symmetric-difference(
array: array
) → array
Returns the distinct values that appear in exactly one of the two arrays, listing pipeline-input exclusives first and parameter-array exclusives 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 to compare against the pipeline input. |
Examples
{1, 2, 3} | symmetric-difference({2, 3, 4}) → {1, 4}
Kind: Function
Scope: array/set
Aliases: symmetric-difference