Filtering for uniqueness in a list
Mark Wieder
mwieder at ahsoftware.net
Wed Oct 19 20:52:56 EDT 2005
Harvey-
Wednesday, October 19, 2005, 4:31:32 PM, you wrote:
> Does anyone have a good, fast method for ensuring uniqueness in a multi
> word list?
>From your description, it sounds like a plain old array would do the
job for you:
-- pass your list (with duplicates) in pList:
function RemoveDupesFrom pList
local tNoDupesA
repeat for each line tData in pList
put true into tNoDupesA[tData]
end repeat
return the keys of tNoDupesA
end RemoveDupesFrom
--
-Mark Wieder
mwieder at ahsoftware.net
More information about the use-livecode
mailing list