Colección inmutable - Queue

Run Settings
LanguageScala
Language Version
Run Command
object Main extends App { val empty = scala.collection.immutable.Queue[Int]() println(empty) val has1 = empty.enqueue(1) println(has1) val has123 = has1.enqueue(List(2, 3)) val (element, has23) = has123.dequeue println(has23) println(has123) }
Editor Settings
Theme
Key bindings
Full width
Lines