Re: Union of two Arrays
Re: Union of two Arrays
- Subject: Re: Union of two Arrays
- From: Sacha Michel Mallais <email@hidden>
- Date: Wed, 7 Mar 2007 12:03:19 -0800
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden