diff options
author | Paul Phillips <paulp@improving.org> | 2010-03-22 23:02:50 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-03-22 23:02:50 +0000 |
commit | 88aab1cf8e06f98ccd18437974c09162ee54149f (patch) | |
tree | aafd69e2e195fb63341d4a01ffa90ced19cec0d9 /src/library/scala/collection/mutable/Queue.scala | |
parent | 4eff9e1cd51202b8c3bf7c8e0fe176a05f4d4acd (diff) | |
download | scala-88aab1cf8e06f98ccd18437974c09162ee54149f.tar.gz scala-88aab1cf8e06f98ccd18437974c09162ee54149f.tar.bz2 scala-88aab1cf8e06f98ccd18437974c09162ee54149f.zip |
Noticed we still have a bunch of collection cla...
Noticed we still have a bunch of collection classes which are rather
lacking. Did some integration, added some companion objects. Not
thrilled with the overall picture in there, there's still a lot which
should be done. Updated a deprecation message, closes #3202. No review.
Diffstat (limited to 'src/library/scala/collection/mutable/Queue.scala')
-rw-r--r-- | src/library/scala/collection/mutable/Queue.scala | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/library/scala/collection/mutable/Queue.scala b/src/library/scala/collection/mutable/Queue.scala index 6b32f0f94e..3754dbc3f2 100644 --- a/src/library/scala/collection/mutable/Queue.scala +++ b/src/library/scala/collection/mutable/Queue.scala @@ -144,8 +144,7 @@ class Queue[A] extends MutableList[A] with Cloneable[Queue[A]] { def front: A = first0.elem } -// !!! TODO -// object Queue extends SeqFactory[Queue] { -// implicit def canBuildFrom[A]: CanBuildFrom[Coll, A, Queue[A]] = new GenericCanBuildFrom[A] -// def newBuilder[A]: Builder[A, Queue[A]] = new GrowingBuilder(new Queue[A]) -// } +// !!! TODO - integrate +object Queue { + def apply[A](xs: A*): Queue[A] = new Queue[A] ++= xs +} |