PrimitiveSequence
struct PrimitiveSequence<Trait, Element>
-
Projects each element of an single sequence into a new form.
Seealso
Declaration
Swift
func map<R>(_ transform: @escaping (PrimitiveSequence.E) throws -> R) -> RxSwift.Single<R>
Parameters
transform
A transform function to apply to each source element.
Return Value
An observable sequence whose elements are the result of invoking the transform function on each element of source.
-
Projects each element of an single sequence to an single sequence and merges the resulting single sequences into one single sequence.
Seealso
Declaration
Swift
func flatMap<O>(_ selector: @escaping (PrimitiveSequence.E) throws -> O) -> RxSwift.Single<O.E> where O : ObservableConvertibleType
Parameters
selector
A transform function to apply to each element.
Return Value
An observable sequence whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.
-
Store the last response and return tuple
Declaration
Swift
func store(startWith: PrimitiveSequence.E) -> Single<(newValue: E, oldValue: E)>
-
Store the last response and return tuple
Declaration
Swift
func store() -> Single<(newValue: E, oldValue: E?)>