Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- map
- uiscrollview
- HIG
- 리펙토링
- Clean Code
- RxCocoa
- MVVM
- 클린 코드
- 스위프트
- Xcode
- combine
- tableView
- 애니메이션
- collectionview
- 리팩토링
- UITextView
- Observable
- uitableview
- UICollectionView
- Protocol
- clean architecture
- scrollview
- rxswift
- Human interface guide
- swiftUI
- Refactoring
- ios
- ribs
- swift documentation
- SWIFT
Archives
- Today
- Total
김종권의 iOS 앱 개발 알아가기
[RxSwift] 4. distinctUntilChanged 본문
개념: 연달아 중복된 값이 올 때 무시

Observable.of(1, 2, 2, 1, 3)
.distinctUntilChanged()
.subscribe(onNext: {
print($0)
})
.disposed(by: disposeBag)
/* Prints :
1
2
1
3
/*'RxSwift > RxSwift 응용' 카테고리의 다른 글
| [RxSwift] 6. merge, combineLatest, withLatestFrom, zip, concat, (0) | 2020.09.27 |
|---|---|
| [RxSwift] 5. throttle, debounce (0) | 2020.09.27 |
| [RxSwift] 3. flatMap / flatMapFirst / flatMapLatest (0) | 2020.09.27 |
| [RxSwift 응용] 2. MVVM with RxSwift (3) | 2020.07.01 |
| [RxSwift 응용] 1. RxAlamofire (0) | 2020.06.25 |
Comments
