Starting with a Scala list.
val list = List(1,2,3,4)
How can I convert it to a TraversableOnce?
list.iterator
would do the trick if you specifically need to iterate, but your list is already a TraversableOnce
http://www.scala-lang.org/api/current/index.html#scala.collection.immutable.List