Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import RxSwift
let disposeBag = DisposeBag()
Observable.of(1, 2, 3)
.map { $0 * 10 }
.subscribe(onNext: {
print($0)
})
.disposed(by: disposeBag)
// Output:
// 10
// 20
// 30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment