RosettaCodeData/Task/Remove-duplicate-elements/Objective-C/remove-duplicate-elements.m

4 lines
124 B
Mathematica
Raw Permalink Normal View History

2013-04-10 23:57:08 -07:00
NSArray *items = [NSArray arrayWithObjects:@"A", @"B", @"C", @"B", @"A", nil];
NSSet *unique = [NSSet setWithArray:items];