More.ScalaCollections
trait ScalaCollections
Scala Collections Extension
These are extension methods universally available for all Scala Collections, which extend scala.collections.IterableOnce.
Scala Seq, List, Vector, and the likes are covered.
Also note that all Scala collections are implicitly convertibe to Stream, thus they can be used directly everywhere where Stream is required:
val buf: Buffer[String] = NEW
buf ++= Stream("A","B") ++= List("C","D") ++= Vector("E","F") ++= Seq("X","Y","Z")
- Source
- __.scala