Scala Library
|
|
scala/Seq.scala
]
object
Seq
extends
AnyRefValue Summary | |
val
|
empty
: Seq[Nothing]
The empty sequence
|
Method Summary | |
def
|
apply
[A](xs : A*) : Seq[A]
Create read only sequence of specified elements
|
def
|
single
[A](x : A) : singleton[A]
Builds a singleton sequence.
|
def
|
unapplySeq
[A](x : Seq[A]) : Some[Seq[A]]
This method is called in a pattern match { case Seq(...) => }.
|
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Class Summary | |
trait
|
Projection
[+A] extends Seq[A] with Projection[A]
|
case class
|
singleton
[A](val value : A) extends RandomAccessSeq[A] with Product
|
Value Details |
Method Details |
x -
the selector value
def
single[A](x : A) : singleton[A]
singleton
instead.
Scala Library
|
|