title: Is there a declarative way to transform Array to Dictionary?
body: <p>I want to get from this array of strings</p>
  
  <pre><code>let entries = ["x=5", "y=7", "z=10"]
  </code></pre>
  
  <p>to this</p>
  
  <pre><code>let keyValuePairs = ["x" : "5", "y" : "7", "z" : "10"]
  </code></pre>
  
  <p>I tried to use <code>map</code> but the problem seems to be that a key - value pair in a dictionary is not a distinct type, it's just in my mind, but not in the Dictionary type so I couldn't really provide a transform function because there is nothing to transform to. Plus <code>map</code> return an array so it's a no go.</p>
  
  <p>Any ideas?</p>