- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
mutable.Stack does not conform to new collection architecture
Wed, 2010-12-22, 11:10
scala> Stack[Int]()
res19: scala.collection.mutable.Stack[Int] = Stack()
scala> res19.span(_ != 2)
res20: (Seq[Int], Seq[Int]) = (List(),List())
According to the new Architecture it should return (Stack(), Stack()).
Ittay