Created
February 27, 2019 18:23
-
-
Save 50percentgrey/8ba1ad0f609d8215c5fe17e2c945bb02 to your computer and use it in GitHub Desktop.
Extract Value from Observable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let obs1 = Observable.just(FakeObject(blood: [0,1], producers: [100,101])) | |
let obs2 = Observable.just(FakeObject(blood: [3,4], producers: [300,401])) | |
let objs = [Observable.just(obs1), Observable.just(obs2)] | |
// [Observable<Observable[FakeObject]>] to [FakeObject] | |
Observable.combineLatest(vitals) | |
.flatMap { Observable.combineLatest($0) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment