I use NSSet a lot. Seems to work great for me.

NSSet set1 = new NSSet(your nsarray1);
NSSet set2 = new NSSet(your nsarray2);

nsarray3 = (set1.setByUnioningSet(set2)).allObjects();

or something like that

James Cicenia


On Mar 7, 2007, at 1:56 PM, David Avendasora wrote:

Hi all,

Is there an easy (WO or plain Java) way to derive the union of two NSArrays?

Thanks!

Dave
_______________________________________________
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/james% 40jimijon.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
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]

Reply via email to