RACTuple Class Reference
| Inherits from | NSObject |
| Conforms to | NSCoding NSCopying NSFastEnumeration |
| Declared in | RACTuple.h RACTuple.m |
Overview
A tuple is an ordered collection of objects. It may contain nils, represented by RACTupleNil.
Tasks
Other Methods
-
firstproperty -
+ tupleWithObjectsFromArray: -
+ tupleWithObjectsFromArray:convertNullsToNils: -
+ tupleWithObjects: -
– objectAtIndex: -
– allObjects -
– tupleByAddingObject:
RACSequenceAdditions Methods
-
rac_sequenceproperty
ObjectSubscripting Methods
Properties
Class Methods
tupleWithObjects:
Creates a new tuple with the given objects. Use RACTupleNil to represent nils.
+ (instancetype)tupleWithObjects:(id)object, ...Declared In
RACTuple.htupleWithObjectsFromArray:
Creates a new tuple out of the array. Does not convert nulls to nils.
+ (instancetype)tupleWithObjectsFromArray:(NSArray *)arrayDeclared In
RACTuple.htupleWithObjectsFromArray:convertNullsToNils:
Creates a new tuple out of the array. If convert is YES, it also converts
every NSNull to RACTupleNil.
+ (instancetype)tupleWithObjectsFromArray:(NSArray *)array convertNullsToNils:(BOOL)convertDeclared In
RACTuple.hInstance Methods
allObjects
Returns an array of all the objects. RACTupleNils are converted to NSNulls.
- (NSArray *)allObjectsDeclared In
RACTuple.hobjectAtIndex:
Returns the object at index or nil if the object is a RACTupleNil. Unlike
NSArray and friends, it’s perfectly fine to ask for the object at an index
past the tuple’s count - 1. It will simply return nil.
- (id)objectAtIndex:(NSUInteger)indexDeclared In
RACTuple.h