RACTuple
基本用法
1. 创建 RACTuple
RACTuple *tuple = RACTuplePack(@"first", @"second", @(3));
// 结果为 RACTuple (first, second, 3)2. 解包 RACTuple
RACTuple *tuple = RACTuplePack(@"first", @"second", @(3));
RACTupleUnpack(NSString *first, NSString *second, NSNumber *third) = tuple;
NSLog(@"First: %@, Second: %@, Third: %@", first, second, third);
// 输出: First: first, Second: second, Third: 33. RACTuple 和 combineLatest:
4. RACTuple 和 map/flattenMap:
5. RACTuple 内部元素访问
总结
Last updated