title: Convert list to map in Scala
body: <p>I'm trying to convert list to map and getting error which is given below,Any help will be appreciated.  </p>
  
  <p>My input like this</p>
  
  <pre><code>list=(ageis=21,nameis="xyz",profession="Tester",city="cuba")
  </code></pre>
  
  <p>I wanted output like this</p>
  
  <pre><code>Map(ageis-&gt;21,nameis-&gt;"xyz",profession-&gt;"Tester",city-&gt;"cuba")
  </code></pre>