CollectionFactory icon indicating copy to clipboard operation
CollectionFactory copied to clipboard

Support for parsing a collection of collections

Open elliotchance opened this issue 8 years ago • 0 comments

Something that could be done with a loop:

NSArray *objs = ...
NSMutableArray *decoded = [NSMutableArray new];
for (NSDictionary *obj in objs) {
    [decoded addObject:[SomeObject objectWith...]];
}

Can be simplified to something like:

NSArray *objs = ...
NSArray *decoded = [SomeObject objectsWith...: objs];

elliotchance avatar May 05 '16 01:05 elliotchance