@interface RACSequence<__covariant ValueType> : RACStream <NSCoding, NSCopying, NSFastEnumeration>
@property (nonatomic, strong, readonly, nullable) ValueType head;
@property (nonatomic, strong, readonly, nullable) RACSequence<ValueType> *tail;
@property (nonatomic, copy, readonly) NSArray<ValueType> *array;
@property (nonatomic, copy, readonly) NSEnumerator<ValueType> *objectEnumerator;
@property (nonatomic, copy, readonly) RACSequence<ValueType> *eagerSequence;
@property (nonatomic, copy, readonly) RACSequence<ValueType> *lazySequence;
- (RACSignal<ValueType> *)signal;
- (RACSignal<ValueType> *)signalWithScheduler:(RACScheduler *)scheduler;
- (id)foldLeftWithStart:(nullable id)start reduce:(id _Nullable (^)(id _Nullable accumulator, ValueType _Nullable value))reduce;
- (id)foldRightWithStart:(nullable id)start reduce:(id _Nullable (^)(id _Nullable first, RACSequence *rest))reduce;
- (BOOL)any:(BOOL (^)(ValueType _Nullable value))block;
- (BOOL)all:(BOOL (^)(ValueType _Nullable value))block;
- (nullable ValueType)objectPassingTest:(BOOL (^)(ValueType _Nullable value))block;
+ (RACSequence<ValueType> *)sequenceWithHeadBlock:(ValueType _Nullable (^)(void))headBlock tailBlock:(nullable RACSequence<ValueType> *(^)(void))tailBlock;
@end
@interface RACSequence<__covariant ValueType> (RACStream)
+ (RACSequence<ValueType> *)return:(nullable ValueType)value;
+ (RACSequence<ValueType> *)empty;
typedef RACSequence * _Nullable (^RACSequenceBindBlock)(ValueType _Nullable value, BOOL *stop);
- (RACSequence *)bind:(RACSequenceBindBlock (^)(void))block;
- (RACSequence *)concat:(RACSequence *)sequence;
- (RACSequence<RACTuple *> *)zipWith:(RACSequence *)sequence;
@end
@interface RACSequence<__covariant ValueType> (RACStreamOperations)
- (RACSequence *)flattenMap:(__kindof RACSequence * _Nullable (^)(ValueType _Nullable value))block;
- (RACSequence *)flatten;
- (RACSequence *)map:(id _Nullable (^)(ValueType _Nullable value))block;
- (RACSequence *)mapReplace:(nullable id)object;
- (RACSequence<ValueType> *)filter:(BOOL (^)(id _Nullable value))block;
- (RACSequence *)ignore:(nullable ValueType)value;
- (RACSequence *)reduceEach:(id _Nullable (^)())reduceBlock;
- (RACSequence<ValueType> *)startWith:(nullable ValueType)value;
- (RACSequence<ValueType> *)skip:(NSUInteger)skipCount;
- (RACSequence<ValueType> *)take:(NSUInteger)count;
+ (RACSequence<RACTuple *> *)zip:(id<NSFastEnumeration>)sequence;
+ (RACSequence<ValueType> *)zip:(id<NSFastEnumeration>)sequences reduce:(id _Nullable (^)())reduceBlock;
+ (RACSequence<ValueType> *)concat:(id<NSFastEnumeration>)sequences;
- (RACSequence *)scanWithStart:(nullable id)startingValue reduce:(id _Nullable (^)(id _Nullable running, ValueType _Nullable next))reduceBlock;
- (RACSequence *)scanWithStart:(nullable id)startingValue reduceWithIndex:(id _Nullable (^)(id _Nullable running, ValueType _Nullable next, NSUInteger index))reduceBlock;
- (RACSequence *)combinePreviousWithStart:(nullable ValueType)start reduce:(id _Nullable (^)(ValueType _Nullable previous, ValueType _Nullable current))reduceBlock;
- (RACSequence<ValueType> *)takeUntilBlock:(BOOL (^)(ValueType _Nullable x))predicate;
- (RACSequence<ValueType> *)takeWhileBlock:(BOOL (^)(ValueType _Nullable x))predicate;
- (RACSequence<ValueType> *)skipUntilBlock:(BOOL (^)(ValueType _Nullable x))predicate;
- (RACSequence<ValueType> *)skipWhileBlock:(BOOL (^)(ValueType _Nullable x))predicate;
- (RACSequence<ValueType> *)distinctUntilChanged;
ReactiveObjC (三五)(RACSequence)
最后編輯于 :
?著作權歸作者所有,轉載或內容合作請聯系作者
- 文/潘曉璐 我一進店門堂鲤,熙熙樓的掌柜王于貴愁眉苦臉地迎上來亿傅,“玉大人,你說我怎么就攤上這事瘟栖】妫” “怎么了?”我有些...
- 文/不壞的土叔 我叫張陵半哟,是天一觀的道長酬滤。 經常有香客問我,道長寓涨,這世上最難降的妖魔是什么盯串? 我笑而不...
- 正文 為了忘掉前任,我火速辦了婚禮戒良,結果婚禮上体捏,老公的妹妹穿的比我還像新娘。我一直安慰自己蔬墩,他們只是感情好译打,可當我...
- 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著拇颅,像睡著了一般奏司。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上樟插,一...
- 文/蒼蘭香墨 我猛地睜開眼负甸,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了痹届?” 一聲冷哼從身側響起呻待,我...
- 正文 年R本政府宣布炸茧,位于F島的核電站瑞妇,受9級特大地震影響,放射性物質發(fā)生泄漏梭冠。R本人自食惡果不足惜辕狰,卻給世界環(huán)境...
- 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望控漠。 院中可真熱鬧蔓倍,春花似錦、人聲如沸盐捷。這莊子的主人今日做“春日...
- 文/蒼蘭香墨 我抬頭看了看天上的太陽碉渡。三九已至聚谁,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間滞诺,已是汗流浹背形导。 一陣腳步聲響...
推薦閱讀更多精彩內容
- 本篇是對《三俠五義》《正續(xù)小五義》《七杰小五義》的一點觀后對比。 1芬膝、小說與話本 毫無疑問望门,相比起《三俠五義》的文...
- 1 最近這幾天足壇可謂高潮迭起,當大家都因為薩德事件氣憤不已時桐早,國足以1:0戰(zhàn)勝韓國癣缅,為國人大大出了一口氣。 可就...
- 8月22日,經過層層細致審核和嚴格篩選陶衅,民政部公示首批慈善組織互聯網募捐信息平臺遴選結果屡立,騰訊公益、新浪微博微公益...