Skip to content

Commit

Permalink
Fixed Issue #2569 - Deprecated code warnings in playground Filtering_…
Browse files Browse the repository at this point in the history
…and_Conditional_Operators.xcplaygroundpage (#2573)

Fixed Issue #2569 - Deprecated code warnings in playground Filtering_and_Conditional_Operators.xcplaygroundpage
  • Loading branch information
annie-gupta authored Apr 11, 2024
1 parent e20224e commit aaa67fe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -213,7 +213,7 @@ example("skipUntil") {
let referenceSequence = PublishSubject<String>()

sourceSequence
.skipUntil(referenceSequence)
.skip(until: referenceSequence)
.subscribe(onNext: { print($0) })
.disposed(by: disposeBag)

Expand Down

0 comments on commit aaa67fe

Please sign in to comment.