title: a better way to create a map from a list
body: <p>I have a function that look like:</p>
  
  <pre><code> def functionTrans(f: FunctionDec) = {
  
      // some FunctionDec manipulation
  
      f.name -&gt; FuncEntry(/* something here*/)
    }
  </code></pre>
  
  <p>Witch basically do a manipulation of FunctionDec and turn into a Pair (String, FuncEntry). 
  Also i have a <strong>Map[String, FuncEntry]</strong> called <strong>varsEnv</strong> and a <strong>List[FunctionDec]</strong> called <strong>decs</strong>. I need apply that manipulation to all the list and return an augmented Map.
  What i did looks like:</p>
  
  <pre><code>val venvWithFunction = decs.foldLeft(varsEnv)(_ + functionTrans(_))
  </code></pre>
  
  <p>There's a better scala-colection way to do this?</p>