RACStream
RACStream 属性与方法
@interface RACStream<__covariant ValueType> : NSObject
1. + (__kindof RACStream<ValueType> *)empty;
2. + (__kindof RACStream<ValueType> *)return:(nullable ValueType)value;
3. typedef RACStream * _Nullable (^RACStreamBindBlock)(ValueType _Nullable value, BOOL *stop);
4. - (__kindof RACStream *)bind:(RACStreamBindBlock (^)(void))block;
5. - (__kindof RACStream *)concat:(RACStream *)stream;
6. - (__kindof RACStream *)zipWith:(RACStream *)stream;
@end
@interface RACStream ()
1. @property (copy) NSString *name;
2. - (instancetype)setNameWithFormat:(NSString *)format, ... ;
@end
@interface RACStream<__covariant ValueType> (Operations)
1. - (__kindof RACStream *)flattenMap:(__kindof RACStream * _Nullable (^)(ValueType _Nullable value))block;
2. - (__kindof RACStream *)flatten;
3. - (__kindof RACStream *)map:(id _Nullable (^)(ValueType _Nullable value))block;
4. - (__kindof RACStream *)mapReplace:(nullable id)object;
5. - (__kindof RACStream<ValueType> *)filter:(BOOL (^)(ValueType _Nullable value))block;
6. - (__kindof RACStream<ValueType> *)ignore:(nullable ValueType)value;
7.- (__kindof RACStream *)reduceEach:(id _Nullable (^)())reduceBlock;
8. - (__kindof RACStream<ValueType> *)startWith:(nullable ValueType)value;
9. - (__kindof RACStream<ValueType> *)skip:(NSUInteger)skipCount;
10. - (__kindof RACStream<ValueType> *)take:(NSUInteger)count;
11. + (__kindof RACStream<ValueType> *)zip:(id<NSFastEnumeration>)streams;
12. + (__kindof RACStream<ValueType> *)zip:(id<NSFastEnumeration>)streams reduce:(id _Nullable (^)())reduceBlock;
13. + (__kindof RACStream<ValueType> *)concat:(id<NSFastEnumeration>)streams;
14. - (__kindof RACStream *)scanWithStart:(nullable id)startingValue reduce:(id _Nullable (^)(id _Nullable running, ValueType _Nullable next))reduceBlock;
15. - (__kindof RACStream *)scanWithStart:(nullable id)startingValue reduceWithIndex:(id _Nullable (^)(id _Nullable running, ValueType _Nullable next, NSUInteger index))reduceBlock;
16. - (__kindof RACStream *)combinePreviousWithStart:(nullable ValueType)start reduce:(id _Nullable (^)(ValueType _Nullable previous, ValueType _Nullable current))reduceBlock;
17. - (__kindof RACStream<ValueType> *)takeUntilBlock:(BOOL (^)(ValueType _Nullable x))predicate;
18. - (__kindof RACStream<ValueType> *)takeWhileBlock:(BOOL (^)(ValueType _Nullable x))predicate;
19. - (__kindof RACStream<ValueType> *)skipUntilBlock:(BOOL (^)(ValueType _Nullable x))predicate;
20. - (__kindof RACStream<ValueType> *)skipWhileBlock:(BOOL (^)(ValueType _Nullable x))predicate;
21. - (__kindof RACStream<ValueType> *)distinctUntilChanged;
@end