scala

object Seq

[source: scala/Seq.scala]

object Seq
extends AnyRef
Value 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
val empty : Seq[Nothing]
The empty sequence

Method Details
def unapplySeq[A](x : Seq[A]) : Some[Seq[A]]
This method is called in a pattern match { case Seq(...) => }.
Parameters
x - the selector value
Returns
sequence wrapped in an option, if this is a Seq, otherwise none

def apply[A](xs : A*) : Seq[A]
Create read only sequence of specified elements

@deprecated

def single[A](x : A) : singleton[A]
Builds a singleton sequence.
Deprecated
use singleton instead.