Filtering one list out of another
Dick Kriesel
dick.kriesel at mail.com
Mon Dec 23 18:24:29 EST 2013
Hi, Devin. Here's a version that uses arrays for speed.
command difference @rList1, @rList2
local tArray1, tArray2
repeat for each line tLine in rList2
put "true" into tArray2[ tLine ]
end repeat
repeat for each line tLine in rList1
if not tArray2[ tLine ] then
put "true" into tArray1[ tLine ]
end if
end repeat
put the keys of tArray1 into rList1
end difference
-- Dick
More information about the use-livecode
mailing list