TapCommon-Unity/Plugins/iOS/TapCommonSDK.framework/Headers/NSArray+Safe.h

26 lines
582 B
C
Raw Normal View History

2023-03-30 15:28:29 +08:00
//
// NSArray+Safe.h
// TapAchievement
//
// Created by TapTap-David on 2020/9/15.
// Copyright © 2020 taptap. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface NSArray (Safe)
- (void)tds_each:(void (^)(id object, NSUInteger index))block;
- (void)tds_apply:(void (^)(id object, NSUInteger index))block;
- (NSArray *)tds_map:(id (^)(id object, NSUInteger index))block;
- (id)tds_reduce:(id (^)(id accumulated, id object))block;
- (NSArray *)tds_filter:(BOOL (^)(id object, NSUInteger index))block;
- (id)tds_safeObjectAtIndex:(NSUInteger)index;
@end