title: declare variable scala as set of instructions
body: <p>Is it possible to declare a variable in scala as the result of a series of instructions?. I'm trying to do something equivalent to the following F# snippet</p>
  
  <pre><code>let gSmall, gLarge, defaultOrder = 
      if g1remainingNodesToMap.Count &lt;= g2remainingNodesToMap.Count then
          g1remainingNodesToMap, g2remainingNodesToMap, true
      else g2remainingNodesToMap, g1remainingNodesToMap, false
  </code></pre>