title: How to extract only the values from a map
body: <p>I have the following Map after doing a groupBy and then partition/sliding on an List of Lists. Now i'm only interested in the values of the map, the keys are irrelevant. Basically i'm trying to extract the subset of Lists after groupBy and sliding/partition and perform additional map and reduce functions on them.</p>
  
  <pre><code>var sectionMap : Map[Int,List[List[Any]]] = Map(
    1 -&gt; List(List(1,20,"A"), List(1,40,"B")),
    2 -&gt; List(List(2,30,"A"), List(2,80,"F")),
    3 -&gt; List(List(3,80,"B"))
  )
  </code></pre>
  
  <p>I used <code>sectionMap.values</code> but it returned a format like <code>Iterable[List[List[Any]]]</code> However I want the following type <code>List[List[Any]]</code>. Is there is one step function to apply to achieve the result?</p>
  
  <pre><code>  List(
     List(1,20,"A"),
     List(1,40,"B"),
     List(2,30,"A"),
     List(2,80,"F"),
     List(3,80,"B")
    )
  </code></pre>