title: Scala HashMap from an Array
body: <p>I have a Scala Array of 2-tuples like this:</p>
  
  <pre><code>(("A", "2015-11-01"), ("B", "2016-11-11"), ("A", "2017-11-01"), ("B", "2013-11-11"))
  </code></pre>
  
  <p>I want to create a Map where the key maps to the latest date. So, in the example above, the result should be:</p>
  
  <pre><code>Map ("A" -&gt; "2017-11-01", "B" -&gt; "2016-11-11")
  </code></pre>
  
  <p>I know how to do it iteratively - but what would be a Scala-way (functional-way) to do this?</p>