title: How to read from csv to a ListMap
body: <p>I have been assigned with the task of reading from csv, and creating a ListMap variable. The reason to use this specific class is that for some other use cases they were already using a number of methods with ListMap as input parameter, and they want one more.</p>
  
  <p>What I have done so far is: read from the csv, and create a rdd. 
  The format of the csv is </p>
  
  <pre><code>"field1,field2"
  "value1,value2"
  "value3,value4"
  </code></pre>
  
  <p>In this rdd I have tuples of strings. What I would like is to now convert this to a ListMap class. So what I have is a variable with the type <strong>Array[(value1,value2),(value3,value4)]</strong>. </p>
  
  <p>I did this because I find it easy to go from a csv to tuples. The problem is I do not find any way to go from here to a ListMap. It seems easier to get a normal Map class, but as I said, it is required for the final result to be a ListMap type of object.</p>
  
  <p>I have been reading but I do not really understand <a href="https://stackoverflow.com/a/3828197/6028947">this answer</a> nor <a href="https://stackoverflow.com/a/28957698/6028947">this one</a></p>