deleteDups()
HyperChris at aol.com
HyperChris at aol.com
Wed Nov 16 13:03:26 EST 2005
>> then J. Landman Gay wrote ...
>> function deleteDups pList
>> split pList by cr and numToChar(3)
>> return keys(pList)
>> end deleteDups
Geoff Canyon wrote ...
>it looks like the split command takes not quite twice
>as long as repeat for each ...
>
>function deleteDupes pList -- does _not_ retain sort order
> repeat for each line L in pList
> put 1 into temp[L]
> end repeat
> return the keys of temp
>end deleteDupes
Thanks Geoff. Actually, I am getting split as four times faster
than 'for each' (under v2.6.0 & 2.6.1)
More information about the use-livecode
mailing list