feat:Manage Demo Project

This commit is contained in:
pengfei.zhou
2019-11-19 13:46:29 +08:00
parent f0430a32a7
commit 3426fcd102
11 changed files with 227 additions and 50 deletions

View File

@@ -27,3 +27,21 @@
- (void)let:(void (^)(id it))block;
@end
@interface NSArray <ObjectType> (Doric)
- (void)forEachIndexed:(void (NS_NOESCAPE ^)(ObjectType obj, NSUInteger idx))block;
- (NSArray *)mapIndexed:(id (NS_NOESCAPE ^)(ObjectType obj, NSUInteger idx))block;
- (NSArray *)flatMapIndexed:(NSArray *(NS_NOESCAPE ^)(ObjectType obj, NSUInteger idx))block;
- (NSArray *)filterIndexed:(BOOL (NS_NOESCAPE ^)(ObjectType obj, NSUInteger idx))block;
- (void)forEach:(void (NS_NOESCAPE ^)(ObjectType obj))block;
- (NSArray *)map:(id (NS_NOESCAPE ^)(ObjectType obj))block;
- (NSArray *)flatMap:(NSArray *(NS_NOESCAPE ^)(ObjectType obj))block;
- (NSArray <ObjectType> *)filter:(BOOL (NS_NOESCAPE ^)(ObjectType obj))block;
@end