Finding duplicates in a list

Mark Smith mark at maseurope.net
Wed Jan 9 07:14:56 EST 2008


You're right - I didn't read the whole message. Since I had the  
handler in my library I just grabbed it and posted.
Too quick with the reply button :)

Best,

Mark


On 9 Jan 2008, at 11:48, Bill Marriott wrote:

> Indeed! But that doesn't give him the output he wants, which is
>
> original index (tab) duplicate index (tab) checksum
>
> "Mark Smith" <mark at maseurope.net> wrote in message
> news:7E16D41D-DFA3-4EE3-9C52-7F0F5DFF7C57 at maseurope.net...
>> I got 11 ms on my machine:
>>
>> function getDupesList pList
>>     repeat for each line L in pList
>>         if array1[L] is empty then
>>             put 0 into array1[L]
>>         else
>>             put 0 into array2[L]
>>         end if
>>     end repeat
>>     return the keys of array2
>> end getDupesList
>>
>> Best,
>>
>> Mark
>
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list