title: Swift: Get an element from a tuple
body: <p>If I have a tuple like this</p>
  
  <pre><code>var answer: (number: Int, good: Bool)
  </code></pre>
  
  <p>How do I get one of the elements?</p>
  
  <p>This doesn't work:</p>
  
  <pre><code>answer["number"]
  </code></pre>
  
  <p>I am modeling this question after <a href="https://stackoverflow.com/questions/26536538/swift-get-an-array-of-element-from-an-array-of-tuples">Swift: Get an array of element from an array of tuples</a>, but my question was a little more basic. I did find the answer buried in the <a href="https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/TheBasics.html" rel="noreferrer">documentation</a> so I am adding my answer below in Q&amp;A format for faster searching in the future.</p>