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.
|
|
// // ignore.swift // RxSwiftExt // // Created by Florent Pillet on 10/04/16. // Copyright © 2016 RxSwift Community. All rights reserved. //
import Foundation import RxSwift
extension ObservableType where Element: Equatable { public func ignore(_ valuesToIgnore: Element...) -> Observable<Element> { return self.asObservable().filter { !valuesToIgnore.contains($0) } }
public func ignore<Sequence: Swift.Sequence>(_ valuesToIgnore: Sequence) -> Observable<Element> where Sequence.Element == Element { return self.asObservable().filter { !valuesToIgnore.contains($0) } } }
|