Re: Removing (or picking) items from list 1 via list 2?
Re: Removing (or picking) items from list 1 via list 2?
- Subject: Re: Removing (or picking) items from list 1 via list 2?
- From: Emmanuel <email@hidden>
- Date: Tue, 23 Apr 2002 23:37:53 +0200
At 7:06 PM +0200 23/4/02, Charles Arthur wrote:
>
>
Here's the problem, speed freaks.
>
I have a list - list1 - which could get quite large - say, 400-500 items,
>
all OS aliases.
>
Meanwhile I also have list2 which will also have lots of aliases. Might
>
easily be bigger than list1.
>
I want to pick things randomly from list1 that aren't in list2, to create
>
mywanteditem.
Not saying that the solutions proposed were not optimal, but personally I
would check the following proposition: build / update list3 as you build /
change list1. Ideally, new items would be inserted into list3 at a random
rank, so when "playing" list1 you would just pick list3's first item. There
is no need to empty list1, only list3 (set list3 to rest of list3). For the
purposes here, list1 is useless.
Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.