• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Union of two Arrays
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Union of two Arrays (From: David Avendasora <email@hidden>)

  • Prev by Date: Union of two Arrays
  • Next by Date: Re: Union of two Arrays
  • Previous by thread: Union of two Arrays
  • Next by thread: Re: Union of two Arrays
  • Index(es):
    • Date
    • Thread