title: Merging two arrays of dictionaries based on a shared value
body: <p>Let's say I have two arrays of dictionaries:</p>
  
  <pre><code>[["id":"1","color":"orange"],["id":"2","color":"red"]]
  </code></pre>
  
  <p>and</p>
  
  <pre><code>[["id":"1","fruit":"pumpkin"],["id":"2","fruit":"strawberry"]]
  </code></pre>
  
  <p>How can I merge these based on "id" so that I get</p>
  
  <pre><code>[["id":"1","color":"orange","fruit":"pumpkin"],["id":"2","color":"red","fruit":"strawberry"]]
  </code></pre>
  
  <p>We know that the two arrays will be the same length. We don't know if the two arrays will be in the same order. </p>
  
  <p>What's the best way to merge each dictionary in Swift?</p>