Skip to content

Instantly share code, notes, and snippets.

@eliperkins
Created May 17, 2016 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eliperkins/5be0773d6916adde4bef14648b98d37b to your computer and use it in GitHub Desktop.
Save eliperkins/5be0773d6916adde4bef14648b98d37b to your computer and use it in GitHub Desktop.
(A || B) && C
import RxSwift
let A = Observable.just(())
let B = Observable.just(())
let C = Observable.just(())
let AorB = Observable.combineLatest(A, B) { (a, b) in
return ()
}
let AorBandC = Observable.zip(AorB, C) { (ab, c) in
return ()
}
AorBandC.subscribe {
print("we livin")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment