NSMutableArray fill with unique values from NSArray
NSMutableArray fill with unique values from NSArray
- Subject: NSMutableArray fill with unique values from NSArray
- From: Devraj Mukherjee <email@hidden>
- Date: Thu, 20 Aug 2009 22:43:56 +1000
Hi all,
I have NSMutableArray (fixed length) that I wish to fill with unique
values at each index from a source NSArray (fixed length, greater than
the length of the target mutable array).
Realise that I can do this by writing a loop and check to see if a
value has bee pre-filled, the last indexes take a while to fill (for
obvious reasons of randomisation).
Is there are better way of doing this?
--
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden