iltering one list out of anothe

Jim Lambert jiml at
Mon Dec 23 18:54:11 EST 2013

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	

More information about the Use-livecode mailing list