diff --git a/Rx.playground/Pages/Filtering_and_Conditional_Operators.xcplaygroundpage/Contents.swift b/Rx.playground/Pages/Filtering_and_Conditional_Operators.xcplaygroundpage/Contents.swift index 74acd164f..10ca13f67 100644 --- a/Rx.playground/Pages/Filtering_and_Conditional_Operators.xcplaygroundpage/Contents.swift +++ b/Rx.playground/Pages/Filtering_and_Conditional_Operators.xcplaygroundpage/Contents.swift @@ -195,7 +195,7 @@ example("skipWhileWithIndex") { Observable.of("🐱", "🐰", "🐶", "🐸", "🐷", "🐵") .enumerated() - .skipWhile { $0.index < 3 } + .skip(while: { $0.index < 3 }) .map { $0.element } .subscribe(onNext: { print($0) }) .disposed(by: disposeBag) @@ -213,7 +213,7 @@ example("skipUntil") { let referenceSequence = PublishSubject() sourceSequence - .skipUntil(referenceSequence) + .skip(until: referenceSequence) .subscribe(onNext: { print($0) }) .disposed(by: disposeBag)