title: How to create an immutable map/set from a seq?
body: <p>I am try to construct immutable Sets/Maps from a Seq.  I am currently doing the following:</p>
  
  <pre><code>val input: Seq[(String, Object)] = //.....
  Map[String, Object]() ++ input
  </code></pre>
  
  <p>and for sets</p>
  
  <pre><code>val input: Seq[String] = //.....
  Set[String]() ++ input
  </code></pre>
  
  <p>Which seems a little convoluted, is there a better way?</p>