title: Select middle value in array - Swift
body: <p>I'm trying to make sure that the middle value Lists is the first view that is seen when building my application. Xcode offers <code>if let firstView = viewList.first</code> and <code>if let firstView = viewList.last</code> but I can't workout how to select the middle value.</p>
  
  <pre><code>lazy var viewList:[UIViewController] = {
      let sb = UIStoryboard(name: "Main", bundle: nil)
  
      let lists = sb.instantiateViewController(withIdentifier: "Lists")
      let reminders = sb.instantiateViewController(withIdentifier: "Reminders")
      let todo = sb.instantiateViewController(withIdentifier: "To Do")
  
      return [reminders, lists, todo]
  }()
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      self.dataSource = self
  
      if let firstView = viewList.first {
          self.setViewControllers([firstView], direction: .forward, animated: true, completion: nil)
      }
  }
  </code></pre>