Created
November 14, 2018 21:45
-
-
Save pzmudzinski/655f31892e0f14910c83425cbde63555 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
api.getBooks() | |
.map { books -> BookCollectionAction in return .collectionRefreshed(withBooks: books) } | |
.bind(to: collectionActions) | |
// ... | |
let bookMarkedForDeletion = deleteCommand | |
.withLatestFrom(items) { index, items in return items[index.row] } | |
// ... | |
bookMarkedForDeletion | |
.map { book -> BookCollectionAction in return .bookMarkedForDeletion(book) } | |
.bind(to: collectionActions) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment