Merge pull request #36 in BPHVB/mvm_core from bugfix/map_nullability to develop
* commit 'a35f9a4df1f16d52066253c9ddfa0f68d789bfe6': Fix flatMap spec. Fix nullabiilty. You must return an object for every element. Fix nullabiilty. You must return an object for every element.
This commit is contained in:
commit
0f4b084880
@ -38,9 +38,9 @@
|
||||
- (nonnull NSString *)stringAtIndex:(NSUInteger)index;
|
||||
|
||||
// Maps this array to a new array of T objects given a conversion block. Objective-C implementation of Swift's map. https://developer.apple.com/documentation/swift/array/2908681-map
|
||||
- (nonnull NSArray *)map:(id _Nullable (^_Nonnull)(id _Nonnull obj))mapBlock;
|
||||
- (nonnull NSArray *)filter:(BOOL (^_Nullable)(id _Nonnull obj))block;
|
||||
- (nonnull NSArray *)map:(id _Nonnull (^_Nonnull)(id _Nonnull obj))mapBlock;
|
||||
- (nonnull NSArray *)filter:(BOOL (^_Nonnull)(id _Nonnull obj))block;
|
||||
- (nonnull id)reduce:(id _Nonnull)initial block:(id _Nonnull (^_Nonnull)(id _Nonnull obj1,id _Nonnull obj2))block;
|
||||
- (nullable NSArray *)flatMap:(id _Nullable (^_Nonnull)(id _Nullable obj))block;
|
||||
- (nonnull NSArray *)flatMap:(id _Nonnull (^_Nonnull)(id _Nonnull obj))block;
|
||||
|
||||
@end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user