Needed to add print statement in order to see what was coming from sequenceInt
This commit is contained in:
parent
901933454c
commit
c7aa8607b9
|
|
@ -44,8 +44,9 @@ example("flatMap") {
|
||||||
let sequenceString = Observable.of("A", "B", "C", "D", "E", "F", "--")
|
let sequenceString = Observable.of("A", "B", "C", "D", "E", "F", "--")
|
||||||
|
|
||||||
_ = sequenceInt
|
_ = sequenceInt
|
||||||
.flatMap { int in
|
.flatMap { (x:Int) -> Observable<String> in
|
||||||
sequenceString
|
print("from sequenceInt \(x)")
|
||||||
|
return sequenceString
|
||||||
}
|
}
|
||||||
.subscribe {
|
.subscribe {
|
||||||
print($0)
|
print($0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue