You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
629 B

//
// mergeWith.swift
// RxSwiftExt
//
// Created by Joan Disho on 12/05/18.
// Copyright © 2018 RxSwift Community. All rights reserved.
//
import Foundation
import RxSwift
extension Observable {
/**
Merges elements from the observable sequence with those of a different observable sequences into a single observable sequence.
- parameter with: Other observables.
- returns: The observable sequence that merges the elements of the observable sequences.
*/
public func merge(with others: Observable<Element>...) -> Observable<Element> {
return Observable.merge([self] + others)
}
}