title: Swift 3: Array to Dictionary?
body: <p>I have a large array and need to access it by a key (a lookup) so I need to create Dictionary.  Is there a built in function in Swift 3.0 to do so, or do I need to write it myself?</p>
  
  <p>First I will need it for a class with key "String" and later on maybe I will be able to write a template version for general purpose (all types of data and key).</p>
  
  <hr>
  
  <p>Note for 2019. This is now simply <strong>built-in to Swift 5</strong>, <code>uniqueKeysWithValues</code> and similar calls.</p>