title: Scala - converting array to map
body: <p>I have an array like this</p>
  
  <pre><code>(20140101,20140102,20140103,20140104,20140105,20140106,20140107,20140108)
  </code></pre>
  
  <p>I want to create a map from this by prefixing each value with "s3://" and concatenating three values with a comma.</p>
  
  <p>Output:</p>
  
  <pre><code>val params = Map("1"-&gt; "s3://20140101,s3://20140102,s3://20140103","2"-&gt; "s3://20140104,s3://20140105,s3://20140106","3"-&gt;"s3://20140107,s3://20140108")
  </code></pre>
  
  <p>I'm a beginner and kindly request some thoughts here.</p>