Professional Documents
Culture Documents
16 tableView.rx.items(cellIdentifier: String) // (O) -> (@escaping (Int, S.Iterator.Element, Cell) -> Void) -> next(2) next(Mambo no. 5)
18 completed
next(User(id: 1))
empty - emit no items; terminates normally next(User(id: 2))
error - emit no items; terminates with an error next(User(id: 3))
1 Observable<String>.error(RxError.unknown) completed
2 .subscribe { print($0) }
7
&
%
$
#
"
!
flatMapLatest CONDITIONAL AND BOOLEAN OPERATORS 8 letters.onNext(" ") toArray
9 letters.onNext(" ")
Observable<Int>.of(1, 2, 3) 1 Observable.of(1, 2, 3, 4, 5)
1 10 numbers.onNext(" ")
takeWhile 2 .toArray()
2 .flatMapLatest { fetchUser(id: $0) } 11 numbers.onNext(" ")
.subscribe { print($0) } 3 .subscribe { print($0) }
3
1 Observable<Int>.of(1, 2, 3, 4, 5, 6) 12 letters.onNext(" ")