I have NSArray1 = (1, 5, 2) and NSArray2 = (1, 3, 5)
i want to array1 + array2 = (should return) = (2, 8, 7)
(in fact is it even possible to do this with NSArray)?
Heres a similar question Adding two arrays together (but this adds the values of the second array onto the end of the first array)
NSArray *a = [NSArray arrayWithObjects: @"1" ,@"2",@"3",nil];
NSArray *b = [NSArray arrayWithObjects: @"1" ,@"2",@"3",nil];
NSMutableArray *c = [[NSMutableArray alloc]init];
c = [a addObjectsFromArray:b];
// just a test code . . . .
addObjectsFromArraymethod there.