Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list-building performance



No, that doesn't do it (I want to append a list of lists to a list of lists)--that's basically the same thing I started with (and looks like I'll stick with). I can do it with the "&" operator (set my theList to my theList & {{...},{...}}), but that appears to negate the speed improvement that comes with using the list property. So I'll stick with the way I was doing it (setting the end of the list in two separate statements). It's extremely fast anyway, using the property (it still goes up exponentially, apparently, but it seems to be nearly 40 times faster, and I don't think I'll need to make lists that are long enough to be a problem). Thanks.


On Jun 2, 2007, at 11:40 AM, Emmanuel wrote:
At 11:17 AM -0700 6/2/07, Nigel Redmon wrote:
That is, is there a way to

{{<listA>}} & {{<listB>},{<listC>}}

 and get

{{<listA>},{<listB>},{<listC>}}

instead of {{<listA>},{{<listB>},{<listC>}}?

Is that what you want?

set fred to {{"listB"}, {"listC"}}
set beginning of fred to {"listA"}
fred
--> {{"listA"}, {"listB"}, {"listC"}}

_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-users/email@hidden Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >list-building performance (From: Nigel Redmon <email@hidden>)
 >Re: list-building performance (From: KOENIG Yvan <email@hidden>)
 >Re: list-building performance (From: Nigel Redmon <email@hidden>)
 >Re: list-building performance (From: KOENIG Yvan <email@hidden>)
 >Re: list-building performance (From: Nigel Redmon <email@hidden>)
 >Re: list-building performance (From: Emmanuel <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.