标签:style blog io color sp strong div on log
队列Queue
val emp = scala.collection.immutable.Queue[Int](); val has1 = emp.enqueue(1) val has123=has1.enqueue(List(2,3)) println(has1) //Queue(1) println(has123) //Queue(1,2,3) val emp2 = scala.collection.mutable.Queue[Int](); emp2.enqueue(1); emp2.enqueue(2); println(emp2.dequeue()); //1
标签:style blog io color sp strong div on log
原文地址:http://www.cnblogs.com/gnivor/p/4098273.html