Created
November 14, 2018 21:42
-
-
Save pzmudzinski/f340090318e51de0243fe5e1bc22170d to your computer and use it in GitHub Desktop.
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
deleteCommand | |
.map { $0.row } | |
.withLatestFrom(items) { rowIndex, items in | |
return items[rowIndex] | |
}.flatMap(api.deleteBook) | |
.subscribe() | |
.disposed(by: disposeBag) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment