Skip to content

setDiffSymmetric - The symmetric set difference between two arrays

setDiff returns the set difference of two arrays. The resulting array includes elements from either array1 or array2 but not both.

Syntax

Like many functions in DataPrime, setDiffSymmetric supports two notations, function and method notation. These interchangeable forms allow flexibility in how you structure expressions.

setDiffSymmetric(array1: array<T>, array2: array<T>): array<T>
array1: array<T>.setDiffSymmetric(array2: array<T>): array<T>

Arguments

NameTypeRequiredDescription
array1array of type TtrueT must be either string, bool, number, interval, timestamp, regexp or enum
array2array of type TtrueT must be either string, bool, number, interval, timestamp, regexp or enum