I tried this:
var myQueue = scala.collection.mutable.Queue(myList)
Where list contains elements, let's say: List(1,2,3,4,5)
I want a queue with the same elements with the list such as: Queue(1,2,3,4,5). But what I got is: Queue(List(1, 2, 3, 4, 5))
Any idea?
varand mutable collections when programming Scala. There is (almost) always a way to do it in another way!