9 lines
204 B
Python
9 lines
204 B
Python
|
import scala.collection.mutable
|
||
|
|
||
|
object Collections {
|
||
|
val messages = new mutable.Queue[String]()
|
||
|
messages += "foo"
|
||
|
messages += "bar"
|
||
|
messages += "baz"
|
||
|
messages.foreach(f => println(f))
|
||
|
}
|