Scala Library
|
|
scala/collection/jcl/MutableSeq.scala
]
trait
MutableSeq[A]
extends
Seq[A] with
MutableIterable[A]Method Summary | |
override def
|
apply (idx : Int) : A |
override def
|
elements
: SeqIterator[Int, A]
The default implementation of a map over mutable iterable collections.
|
def
|
indexOf
(a : A) : Option[Int]
Find the index of "a" in this sequence.
|
override def
|
isEmpty
: Boolean
Returns true if length == 0
|
override def
|
length
: Int
Returns the length of the sequence.
|
override def
|
projection
: Projection[A]
returns a projection that can be used to call non-strict
filter ,
map , and flatMap methods that build projections
of the collection. |
Methods inherited from MutableIterable | |
has, remove, removeAll, --, -, retainOnly, retainAll, size0, clear |
Methods inherited from Seq | |
lengthCompare, size, concat, last, lastOption, first, firstOption, headOption, ++, isDefinedAt, lastIndexOf, findIndexOf, indexOf, map, flatMap, filter, take, drop, slice, slice, takeWhile, dropWhile, reverse, contains, subseq, toArray, toSeq, equalsWith, startsWith, startsWith, endsWith, indexOf, containsSlice |
Methods inherited from Collection | |
toString, stringPrefix |
Methods inherited from Iterable | |
partition, foreach, forall, exists, find, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, toStream, mkString, mkString, mkString, addString, addString, addString, copyToArray, hasDefiniteSize |
Methods inherited from PartialFunction | |
orElse, andThen |
Methods inherited from Function1 | |
compose |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Class Summary | |
protected class
|
DefaultSeqIterator
extends SeqIterator[Int, A]
|
protected trait
|
Filter
extends Projection[A]
|
protected class
|
Map
[B](f : (A) => B) extends Map[B] with Projection[B]
|
Method Details |
override
def
elements : SeqIterator[Int, A]
override
def
isEmpty : Boolean
override
def
projection : Projection[A]
filter
,
map
, and flatMap
methods that build projections
of the collection.override
def
length : Int
Scala Library
|
|