Implementation of the union operation for arrays.
int[] arr = calcUnion([3, 4, 1, -15], [9, 3, 1], [1, 99, 3]); assert(arr == [-15, 1, 3, 4, 9, 99]);
See Implementation
Implementation of the union operation for arrays.