Inherits from RACStream : NSObject
Conforms to NSCoding
NSCopying
NSFastEnumeration
Declared in RACSequence.h

Overview

Implemented as a class cluster. A minimal implementation for a subclass consists simply of head and tail.

Tasks

Other Methods

Unavailable Methods

Properties

array

@property (nonatomic, copy, readonly) NSArray *array
Discussion

Evaluates the full sequence to produce an equivalently-sized array.

Declared In

RACSequence.h

eagerSequence

@property (nonatomic, copy, readonly) RACSequence *eagerSequence
Discussion

Returns a new eager sequence, or the receiver if the sequence is already eager.

Declared In

RACSequence.h

head

@property (nonatomic, strong, readonly) id head
Discussion

Subclasses must provide an implementation of this method.

Declared In

RACSequence.h

lazySequence

@property (nonatomic, copy, readonly) RACSequence *lazySequence
Discussion

Returns a new lazy sequence, or the receiver if the sequence is already lazy.

Declared In

RACSequence.h

objectEnumerator

@property (nonatomic, copy, readonly) NSEnumerator *objectEnumerator
Discussion

Returns an enumerator of all objects in the sequence.

Declared In

RACSequence.h

tail

@property (nonatomic, strong, readonly) RACSequence *tail
Discussion

Subclasses must provide an implementation of this method.

Declared In

RACSequence.h

Class Methods

sequenceWithHeadBlock:tailBlock:

+ (RACSequence *)sequenceWithHeadBlock:(id ( ^ ) ( void ))headBlock tailBlock:(RACSequence *( ^ ) ( void ))tailBlock
Discussion

Returns a sequence that lazily invokes the given blocks to provide head and tail. headBlock must not be nil.

Declared In

RACSequence.h

Instance Methods

all:

- (BOOL)all:(BOOL ( ^ ) ( id value ))block
Discussion

Returns a boolean indicating if all values in the sequence passed.

Declared In

RACSequence.h

any:

- (BOOL)any:(BOOL ( ^ ) ( id value ))block
Discussion

Returns a boolean indiciating if any value in the sequence passed.

Declared In

RACSequence.h

foldLeftWithStart:combine:

- (id)foldLeftWithStart:(id)start combine:(id ( ^ ) ( id accumulator , id value ))combine

foldLeftWithStart:reduce:

- (id)foldLeftWithStart:(id)start reduce:(id ( ^ ) ( id accumulator , id value ))reduce
Discussion

Returns a reduced value.

Declared In

RACSequence.h

foldRightWithStart:combine:

- (id)foldRightWithStart:(id)start combine:(id ( ^ ) ( id first , RACSequence *rest ))combine

foldRightWithStart:reduce:

- (id)foldRightWithStart:(id)start reduce:(id ( ^ ) ( id first , RACSequence *rest ))reduce
Discussion

Returns a reduced value.

Declared In

RACSequence.h

objectPassingTest:

- (id)objectPassingTest:(BOOL ( ^ ) ( id value ))block
Discussion

Returns an object that passes the block or nil if no objects passed.

Declared In

RACSequence.h

signal

- (RACSignal *)signal
Discussion

Invokes signalWithScheduler: with a new RACScheduler.

Declared In

RACSequence.h

signalWithScheduler:

- (RACSignal *)signalWithScheduler:(RACScheduler *)scheduler
Discussion

Returns a signal which sends the receiver’s values on the given scheduler as they’re evaluated.

Declared In

RACSequence.h