From 21fb04d4696d1844375f09400f8d5d6b55459197 Mon Sep 17 00:00:00 2001 From: jueying Date: Mon, 8 Jun 2020 17:09:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E5=85=B8=E5=92=8C=E9=9B=86=E5=90=88?= =?UTF-8?q?=E7=9A=84=E6=B3=9B=E5=9E=8B=E5=8F=82=E6=95=B0=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../NSDictionary/NSDictionary+JKBlock.h | 4 ++-- JKCategories/Foundation/NSSet/NSSet+JKBlock.h | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/JKCategories/Foundation/NSDictionary/NSDictionary+JKBlock.h b/JKCategories/Foundation/NSDictionary/NSDictionary+JKBlock.h index 8a3c51a..e21a2ef 100644 --- a/JKCategories/Foundation/NSDictionary/NSDictionary+JKBlock.h +++ b/JKCategories/Foundation/NSDictionary/NSDictionary+JKBlock.h @@ -16,7 +16,7 @@ - (void)jk_eachValue:(void (^)(ObjectType v))block; - (NSArray *)jk_map:(id (^)(KeyType key, ObjectType value))block; - (NSDictionary *)jk_mapValues:(id (^)(ObjectType value))block; -- (NSDictionary *)jk_pick:(NSArray *)keys; -- (NSDictionary *)jk_omit:(NSArray *)key; +- (NSDictionary *)jk_pick:(NSArray *)keys; +- (NSDictionary *)jk_omit:(NSArray *)key; @end diff --git a/JKCategories/Foundation/NSSet/NSSet+JKBlock.h b/JKCategories/Foundation/NSSet/NSSet+JKBlock.h index 63f910a..75e0ec8 100644 --- a/JKCategories/Foundation/NSSet/NSSet+JKBlock.h +++ b/JKCategories/Foundation/NSSet/NSSet+JKBlock.h @@ -8,13 +8,13 @@ #import -@interface NSSet (JKBlock) -- (void)jk_each:(void (^)(id))block; -- (void)jk_eachWithIndex:(void (^)(id, int))block; -- (NSArray *)jk_map:(id (^)(id object))block; -- (NSArray *)jk_select:(BOOL (^)(id object))block; -- (NSArray *)jk_reject:(BOOL (^)(id object))block; -- (NSArray *)jk_sort; -- (id)jk_reduce:(id(^)(id accumulator, id object))block; -- (id)jk_reduce:(id)initial withBlock:(id(^)(id accumulator, id object))block; +@interface NSSet<__covariant ObjectType> (JKBlock) +- (void)jk_each:(void (^)(ObjectType))block; +- (void)jk_eachWithIndex:(void (^)(ObjectType object, int idx))block; +- (NSArray *)jk_map:(id (^)(ObjectType object))block; +- (NSArray *)jk_select:(BOOL (^)(ObjectType object))block; +- (NSArray *)jk_reject:(BOOL (^)(ObjectType object))block; +- (NSArray *)jk_sort; +- (id)jk_reduce:(id(^)(id accumulator, ObjectType object))block; +- (id)jk_reduce:(id)initial withBlock:(id(^)(id accumulator, id ObjectType))block; @end