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
-
first
property -
+ tupleWithObjectsFromArray:
-
+ tupleWithObjectsFromArray:convertNullsToNils:
-
+ tupleWithObjects:
-
– objectAtIndex:
-
– allObjects
-
– tupleByAddingObject:
RACSequenceAdditions Methods
-
rac_sequence
property
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.h
tupleWithObjectsFromArray:
Creates a new tuple out of the array. Does not convert nulls to nils.
+ (instancetype)tupleWithObjectsFromArray:(NSArray *)array
Declared In
RACTuple.h
tupleWithObjectsFromArray: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)convert
Declared In
RACTuple.h
Instance Methods
allObjects
Returns an array of all the objects. RACTupleNils are converted to NSNulls.
- (NSArray *)allObjects
Declared In
RACTuple.h
objectAtIndex:
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)index
Declared In
RACTuple.h