And Ken Ray has a variation on differencing arrays.
function difference pArray1,pArray2
put pArray1 into tempA
intersect tempA with pArray2
repeat for each line tKey in (the keys of tempA)
delete local pArray1[tKey]
delete local pArray2[tKey]
end repeat
union pArray1 with pArray2
return pArray1
end difference
JIm Lambert