title: Scala Iteratively build lists
body: <p>As a Scala beginner I am still struggling working with immutable lists. All I am trying to do append elements to my list. Here's an example of what I am trying to do.</p>
  
  <pre><code>val list = Seq()::Nil
  val listOfInts = List(1,2,3)
  listOfInts.foreach {case x=&gt;
   list::List(x)
  }
  </code></pre>
  
  <p>expecting that I would end up with a list of lists: <em>List(List(1),List(2),List(3))</em></p>
  
  <p>Coming from java I am used to just using list.add(new ArrayList(i)) to get the same result. Am I way off here?</p>