in scala
trait Seq

`abstract trait` Seq [A]
  `extends` java.lang.Object
  `with` scala.PartialFunction[scala.Int, A]
  `with` scala.Iterable[A]
  `with` scala.ScalaObject

  Class `Seq[A]` represents finite sequences of elements of type `A`.

Author:
  Martin Odersky
Author:
  Matthias Zenger
Version:
  1.0, 16/07/2003

Direct Known Subclasses:
  NodeSeq, BoxedArray, SingleLinkedList, ResizableArray, MutableList, Buffer, Stack, Queue, Stream, SeqProxy, List, Array

Def Summary
| `def` concat [A <: B] (that: scala.Seq[B]) : scala.Seq[B] Returns the concatenation of two sequences.
| `def` copyToArray [A <: B] (xs: scala.Array[B], start: scala.Int) : scala.Array[B] Fills the given array `xs` with the elements of this sequence starting at position `start`.
| `def` drop (n: scala.Int) : scala.Seq[A] Returns a new sub-sequence that drops the first `n` elements of this sequence.
| `def` indexOf [A <: B] (elem: B) : scala.Int Returns the index of the first occurence of the specified object in this sequence.
| `def` isDefinedAt (x: scala.Int) : scala.Boolean Is this partial function defined for the index `x`?
| `def` isEmpty : scala.Boolean Returns true is length == 0
| `def` lastIndexOf [A <: B] (elem: B) : scala.Int Returns the index of the last occurence of the specified element in this sequence, or -1 if the sequence does not contain this element.
`abstract` | `def` length : scala.Int Returns the length of the sequence.
| `def` mkString (start: java.lang.String, sep: java.lang.String, end: java.lang.String) : java.lang.String Returns a string representation of this sequence. The resulting string begins with the string `start` and is finished by the string `end`. Inside, the string representations of elements (w.r.t. the method `toString()`) are separated by the string `sep`. Ex: `List(1, 2, 3).mkString("(", "; ", ")") = "(1; 2; 3)"`
`protected` | `def` stringPrefix : java.lang.String Defines the prefix of the string representation.
| `def` subseq (from: scala.Int, len: scala.Int) : scala.Seq[A] Returns a subsequence starting from index `from` consisting of `len` elements.
| `def` take (n: scala.Int) : scala.Seq[A] Returns the sub-sequence starting from index `n`.
| `def` toArray [A <: B] : scala.Array[B] Converts this sequence to a fresh Array
`override` | `def` toString : java.lang.String Customizes the `toString` method.

Def Detail

`def` concat [A <: B](that: scala.Seq[B]): scala.Seq[B]

  Returns the concatenation of two sequences.

Returns:
  concatenation of this sequence with argument
Author:
  buraq

`def` copyToArray [A <: B](xs: scala.Array[B], start: scala.Int): scala.Array[B]

  Fills the given array `xs` with the elements of this sequence starting at position `start`.

Parameters:
  `xs -` the array to fill.
Parameters:
  `start -` starting index.
Returns:
  the given array `xs` filled with this list.

`def` drop (n: scala.Int): scala.Seq[A]

  Returns a new sub-sequence that drops the first `n` elements of this sequence.

Parameters:
  `n -` ...

`def` indexOf [A <: B](elem: B): scala.Int

  Returns the index of the first occurence of the specified object in this sequence.

Parameters:
  `elem -` element to search for.
Returns:
  the index in this sequence of the first occurence of the specified element, or -1 if the sequence does not contain this element.

`def` isDefinedAt (x: scala.Int): scala.Boolean

  Is this partial function defined for the index `x`?

Returns:
  true, iff `x` is a legal sequence index.

`def` isEmpty : scala.Boolean

  Returns true is length == 0

Returns:
  the sequence length.

`def` lastIndexOf [A <: B](elem: B): scala.Int

  Returns the index of the last occurence of the specified element in this sequence, or -1 if the sequence does not contain this element.

Parameters:
  `elem -` element to search for.
Returns:
  the index in this sequence of the last occurence of the specified element, or -1 if the sequence does not contain this element.

`abstract def` length : scala.Int

  Returns the length of the sequence.

Returns:
  the sequence length.

`def` mkString (start: java.lang.String, sep: java.lang.String, end: java.lang.String): java.lang.String

  Returns a string representation of this sequence. The resulting string begins with the string `start` and is finished by the string `end`. Inside, the string representations of elements (w.r.t. the method `toString()`) are separated by the string `sep`.

  Ex:
  `List(1, 2, 3).mkString("(", "; ", ")") = "(1; 2; 3)"`

Parameters:
  `start -` starting string.
Parameters:
  `sep -` separator string.
Parameters:
  `end -` ending string.
Returns:
  a string representation of this sequence.

`protected def` stringPrefix : java.lang.String

  Defines the prefix of the string representation.

`def` subseq (from: scala.Int, len: scala.Int): scala.Seq[A]

  Returns a subsequence starting from index `from` consisting of `len` elements.

`def` take (n: scala.Int): scala.Seq[A]

  Returns the sub-sequence starting from index `n`.

Parameters:
  `n -` ...

`def` toArray [A <: B]: scala.Array[B]

  Converts this sequence to a fresh Array

`override def` toString : java.lang.String

  Customizes the `toString` method.

Returns:
  a string representation of this sequence.