title: how to access values in a dictionary using reduce in swift?
body: <p>I got the <code>key</code> from the dictionary using <code>reduce</code> like by doing the following:</p>
  
  <pre><code>let namesAndScores = ["Anna": 2, "Brian": 2, "Craig": 8, "Donna": 6]
  
   let namesString = namesAndScores.reduce("",
   combine: { $0 + "\($1.0), " })
   print(namesString)
  </code></pre>
  
  <p>But I would like to know how to get the <code>value</code> from the <code>dictionary</code> using the <code>reduce</code> ?. </p>
  
  <p>Any help would be appreciated.
  Thanks.</p>