Pete pete at
Thu Jun 23 14:13:55 CDT 2011

Yes, remember seeing the thread on the speed difference between "with" and
"for" but couldn't remember which was the faster, thanks for the reminder.
 Is that UK or USA gazillion/bazillion?
Molly's Revenge <>

On Thu, Jun 23, 2011 at 11:39 AM, J. Landman Gay
<jacque at>wrote:

> On 6/23/11 12:23 PM, Pete wrote:
>> Now I can add "symmetric difference" to my extremely small vocabulary of
>> set
>> theory terms!
> Yeah, I'd never heard of it either. Now I can sound smart. :)
>  Largely academic at this point but there is a variation to the
>> array solution that Jacque and I offered which does it all in one repeat
>> loop:
>> put tlist1&  cr&  tlist2 into tlist3
>> repeat with x=1 to the number of lines in tlist3
>>   if  line x of tlist3 is among the keys of tarray then
>>     delete variable tarray[line x of tlist3]
>>   else
>>     put true into tarray[line x of tlist3]
>>   end if
>> end repeat
> Use "repeat for each" instead of a counter. I don't have the benchmarks,
> but it is somewhere between a gazillion and a bazillion times faster. I've
> become a little compulsive about it, since except for the very shortest of
> lists, the speed difference is so great.
> --
> Jacqueline Landman Gay         |     jacque at
> HyperActive Software           |
> ______________________________**_________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:

More information about the use-livecode mailing list