title: Combining 2 arrays into a dictionary in Xcode 6, swift?, with corresponding index values)
body: <p>In my app, I have 2 arrays which are in use a lot, an array that stores score values as an Integer, and another array that stores dates in the format "mm/dd/yy". These arrays are continuously being appended, and the indexes of these arrays correspond to each other, for example, index 0 of dates array corresponds to index 0 of score array. I want these arrays to be turned into a dictionary upon when a second screen loads(these are global variables). For example, these are the type of values in each array.</p>
  
  <pre><code>score == [1,2,3,4,5,6,7,8,9]
  dates == ["7/12/15","7/12/15","7/12/15","7/12/15","7/13/15","7/13/15","7/13/15","7/13/15","    7/14/15"]
  </code></pre>
  
  <p>What I want to happen, is that upon viewDidLoad(), this gets created.</p>
  
  <pre><code>var scoreDatesDictionary = [
  "7/12/15": [1,2,3,4]
  "7/13/15": [5,6,7,8]
  "7/14/15": [9]
  ]
  </code></pre>
  
  <p>In its essence, the two arrays have corresponding values, (firstArray[0]) corresponds to (secondArray[0]). I am trying to make it that in the secondArray(dates), identical strings get matched up in a dictionary with their corresponding index values. I may not make much sense, but the sample code I provided should work. I spent a lot of time working with this, and I can't find a solution.</p>