Skip to content

Commit

Permalink
Simplify item access.
Browse files Browse the repository at this point in the history
  • Loading branch information
srdanrasic committed Feb 17, 2019
1 parent ce5251d commit 95c9a44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let selectedPair = selectedRow.scan([0, 0]) { (pair, rowAndComponent) -> [Int] i
selectedPair.observeNext { (pair) in
print("selected indices", pair)
let items = pair.enumerated().map {
data[[$0.offset, $0.element]].value.item!
data[itemAt: [$0.offset, $0.element]]
}
print("selected items", items)
}
Expand Down

0 comments on commit 95c9a44

Please sign in to comment.