scala
object Seq

[source: `scala/Seq.scala`]

`` `object` Seq
  `extends` AnyRef

Value Summary
`val` | empty : Seq[Nothing] The empty sequence

Method Summary
`def` | single [A](x : A) : Seq[A] Builds a singleton sequence.
`def` | unapplySeq [A](x : Seq[A]) : Option[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

Value Details

`` `val` empty : Seq[Nothing]

  The empty sequence

Method Details

`` `def` unapplySeq[A](x : Seq[A]) : Option[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` single[A](x : A) : Seq[A]

  Builds a singleton sequence.

Parameters
  `x -` ...
Returns
  ...