Created
March 1, 2018 18:01
-
-
Save jwhitehorn/d2ca307b25e6ad302ba51b12f796cb2a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "NSArray+Construction.h" | |
@implementation NSArray (Construction) | |
+ (NSArray *) arrayWith:(int)count copiesOf:(NSString *)str { | |
NSMutableArray *result = [NSMutableArray new]; | |
for(int i = 0; i != count; i++){ | |
[result addObject:str]; | |
} | |
return result; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment