scala.collection.interfaces
SeqMethods
trait
SeqMethods[+A, +This <: SeqLike[A, This] with Seq[A]] extends IterableMethods[A, This]
Inherits
- IterableMethods
- TraversableMethods
- AnyRef
- Any
Value Members
-
def
++[B >: A, That](that: Traversable[B])(bf: CanBuildFrom[This, B, That]): That
-
def
++[B >: A, That](that: Iterator[B])(bf: CanBuildFrom[This, B, That]): That
-
def
/:[B](z: B)(op: (B, A) ⇒ B): B
-
def
:\[B](z: B)(op: (A, B) ⇒ B): B
-
def
addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
-
-
-
def
apply(idx: Int): A
-
def
contains(elem: Any): Boolean
-
def
copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Unit
-
def
copyToArray[B >: A](xs: Array[B], start: Int): Unit
-
def
copyToBuffer[B >: A](dest: Buffer[B]): Unit
-
def
count(p: (A) ⇒ Boolean): Int
-
def
diff[B >: A, That](that: Seq[B]): This
-
-
def
dropRight(n: Int): Iterable[A]
-
def
dropWhile(p: (A) ⇒ Boolean): Traversable[A]
-
def
endsWith[B](that: Seq[B]): Boolean
-
def
equals(arg0: Any): Boolean
-
def
exists(p: (A) ⇒ Boolean): Boolean
-
def
filter(p: (A) ⇒ Boolean): Traversable[A]
-
def
filterNot(p: (A) ⇒ Boolean): Traversable[A]
-
def
find(p: (A) ⇒ Boolean): Option[A]
-
def
flatMap[B, That](f: (A) ⇒ Traversable[B])(bf: CanBuildFrom[This, B, That]): That
-
def
foldLeft[B](z: B)(op: (B, A) ⇒ B): B
-
def
foldRight[B](z: B)(op: (A, B) ⇒ B): B
-
def
forall(p: (A) ⇒ Boolean): Boolean
-
def
foreach[U](f: (A) ⇒ U): Unit
-
def
groupBy[K](f: (A) ⇒ K): Map[K, Traversable[A]]
-
def
hasDefiniteSize: Boolean
-
def
hashCode(): Int
-
def
head: A
-
def
headOption: Option[A]
-
def
indexOf[B >: A](elem: B, from: Int): Int
-
def
indexOf[B >: A](elem: B): Int
-
def
indexOfSlice[B >: A](that: Seq[B], fromIndex: Int): Int
-
def
indexOfSlice[B >: A](that: Seq[B]): Int
-
def
indexWhere(p: (A) ⇒ Boolean, from: Int): Int
-
def
indexWhere(p: (A) ⇒ Boolean): Int
-
def
indices: Range
-
-
def
intersect[B >: A, That](that: Seq[B]): This
-
def
isDefinedAt(x: Int): Boolean
-
def
isEmpty: Boolean
-
def
iterator: Iterator[A]
-
def
last: A
-
def
lastIndexOf[B >: A](elem: B, end: Int): Int
-
def
lastIndexOf[B >: A](elem: B): Int
-
def
lastIndexOfSlice[B >: A](that: Seq[B], fromIndex: Int): Int
-
def
lastIndexOfSlice[B >: A](that: Seq[B]): Int
-
def
lastIndexWhere(p: (A) ⇒ Boolean, end: Int): Int
-
def
lastIndexWhere(p: (A) ⇒ Boolean): Int
-
def
lastOption: Option[A]
-
def
length: Int
-
def
lengthCompare(len: Int): Int
-
def
map[B, That](f: (A) ⇒ B)(bf: CanBuildFrom[This, B, That]): That
-
def
mkString: String
-
def
mkString(start: String, sep: String, end: String): String
-
def
mkString(sep: String): String
-
def
nonEmpty: Boolean
-
def
padTo[B >: A, That](len: Int, elem: B)(bf: CanBuildFrom[This, B, That]): That
-
def
partialMap[B, That](pf: PartialFunction[A, B])(bf: CanBuildFrom[This, B, That]): That
-
-
def
patch[B >: A, That](from: Int, patch: Seq[B], replaced: Int)(bf: CanBuildFrom[This, B, That]): That
-
def
prefixLength(p: (A) ⇒ Boolean): Int
-
def
reduceLeft[B >: A](op: (B, A) ⇒ B): B
-
def
reduceLeftOption[B >: A](op: (B, A) ⇒ B): Option[B]
-
def
reduceRight[B >: A](op: (A, B) ⇒ B): B
-
def
reduceRightOption[B >: A](op: (A, B) ⇒ B): Option[B]
-
def
removeDuplicates: This
-
def
reverse: This
-
def
reverseIterator: Iterator[A]
-
def
sameElements[B >: A](that: Iterable[B]): Boolean
-
def
segmentLength(p: (A) ⇒ Boolean, from: Int): Int
-
def
size: Int
-
def
slice(from: Int, until: Int): Traversable[A]
-
def
sortWith(lt: (A, A) ⇒ Boolean)(m: ClassManifest[A]): This
-
-
-
def
startsWith[B](that: Seq[B], offset: Int): Boolean
-
def
startsWith[B](that: Seq[B]): Boolean
-
def
stringPrefix: String
-
-
-
def
takeRight(n: Int): Iterable[A]
-
def
takeWhile(p: (A) ⇒ Boolean): Traversable[A]
-
-
def
toIndexedSeq[B >: A]: IndexedSeq[B]
-
def
toIterable: Iterable[A]
-
def
toList: List[A]
-
def
toSeq: Seq[A]
-
def
toSet[B >: A]: Set[B]
-
def
toStream: Stream[A]
-
def
toString(): String
-
def
union[B >: A, That](that: Seq[B])(bf: CanBuildFrom[This, B, That]): That
-
def
view(from: Int, until: Int): SeqView[A, This]
-
def
view: SeqView[A, This]
-
def
zip[A1 >: A, B, That](that: Iterable[B])(bf: CanBuildFrom[This, (A1, B), That]): That
-
def
zipAll[B, A1 >: A, That](that: Iterable[B], e1: A1, e2: B)(bf: CanBuildFrom[This, (A1, B), That]): That
-
def
zipWithIndex[A1 >: A, That](bf: CanBuildFrom[This, (A1, Int), That]): That