On Mar 7, 2007, at 11:56 AM, David Avendasora wrote:
Is there an easy (WO or plain Java) way to derive the union of two
NSArrays?
Here's one that's not particularly efficient, but is really easy:
NSArray union = new NSSet(arrayA).setByUnioningSet(new NSSet
(arrayB)).allObjects()
sacha
--
Sacha Michel Mallais Mojo Worker
Global Village Consulting Inc. http://www.global-village.net/
PGP Key ID: 7D757B65 AIM: smallais
A day without sunshine is like night.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]