March 2014 update
This commit is contained in:
parent
09687c4926
commit
a25938f123
1846 changed files with 21876 additions and 5203 deletions
|
|
@ -7,11 +7,10 @@
|
|||
NSMutableArray *subset = [[NSMutableArray alloc] init];
|
||||
for (int itemIndex = 0; itemIndex < array.count; itemIndex++) {
|
||||
if((subsetIndex >> itemIndex) & 0x1) {
|
||||
[subset addObject:[array objectAtIndex:itemIndex]];
|
||||
[subset addObject:array[itemIndex]];
|
||||
}
|
||||
}
|
||||
[subsets addObject:subset];
|
||||
[subset release];
|
||||
}
|
||||
return subsets;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue