title: What is the best way to convert a scala array of strings to a map?
body: <p>I have a array of strings which are delimited by a tab char ('\t'), after splitting by '\t' the second element is delimited by a ',' which are just a bunch of floats. What is a concise way to convert this string to a map?</p>
  
  <pre class="lang-scala prettyprint-override"><code>val values = List("abc\t1,.2,.4", "def\t6,.2,2.4")
  Map[String,Array[Float]] = Map{
                                 "abc": [1,.2,.4],
                                 "def": [6,.2,2.4]
                                }
  </code></pre>