Re: AppleScript-Users Digest, Vol 4, Issue 433
Re: AppleScript-Users Digest, Vol 4, Issue 433
- Subject: Re: AppleScript-Users Digest, Vol 4, Issue 433
- From: "Stockly, Ed" <email@hidden>
- Date: Tue, 04 Sep 2007 12:10:03 -0700
- Thread-topic: AppleScript-Users Digest, Vol 4, Issue 433
set uniqueList to {}
repeat with x from 1 to count of origList
if item x of origList is not in uniqueList then
set the end of uniqueList to item x of origList
end if
end repeat
> Which doesn't change the runtime, but does make it simpler to write.
>
> Don't get me started on the need to explicitly dereference elements
> obtained via "repeat with...in", though. :)
Probably faster because there is no need to dereference elements.
HTH
ES
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden