More
object More
- Source
- __.scala
class java.lang.Object
trait scala.Matchable
class Any
Member
trait JavaCollections
Java Collections Extension
These are extension methods universally available for all Java Collections, which extend java.lang.Iterable.
Java List, Vector, Set, Iterator, etc. have those methods.
Also note that all Java collections are implicitly convertibe to Stream, thus they can be used directly everywhere where Stream is required.
- Source
- __.scala
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