title: RxSwift obtain value from one item in Observable sequence
body: <p>I'm trying to gradually convert my App to RxSwift / MVVM. But I think I'm doing some things incorrectly.</p>
  
  <p>In this example I have a static table with this specific information.</p>
  
  <pre><code>    let itens = Observable.just([
          MenuItem(name: GlobalStrings.menuItemHome,      nameClass: "GPMainVC"),
          MenuItem(name: GlobalStrings.menuItemProfile,   nameClass: "GPMainVC"),
          MenuItem(name: GlobalStrings.menuItemLevels,    nameClass: "GPLevelsVC"),
      ])
  </code></pre>
  
  <p>I need to know the model(MenuItem) and the index when the user select a cell, but I am having trouble doing that</p>
  
  <pre><code> tableView.rx
          .itemSelected
          .map { [weak self] indexPath in
              return (indexPath, self?.modelView.itens.elementAt(indexPath.row))
          }
          .subscribe(onNext: { [weak self] indexPath, model in
  
              self?.tableView.reloadData()
  
              //can´t get MenuItem because model its a observable
              //self?.didSelect((indexPath as NSIndexPath).row, name.nameClass)
  
          })
          .addDisposableTo(disposeBag)
  </code></pre>
  
  <p>Thanks in advance</p>