Scala Library Documentation
|
|
scala/collection/jcl/MutableSeq.scala
]
trait
MutableSeq[A]
extends
MutableIterable[A] with
Seq[A]Method Summary | |
override def
|
apply (idx : Int) : A |
override abstract def
|
elements
: SeqIterator[Int, A]
Creates a new iterator over all elements contained in this
object.
|
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
returns a facade that can be used to call non-strict
filter ,
map , and flatMap methods that build projections
of the collection. |
Methods inherited from Seq | |
size, concat, ++, isDefinedAt, lastIndexOf, map, flatMap, filter, take, drop, takeWhile, dropWhile, reverse, contains, slice, subseq, toArray |
Methods inherited from PartialFunction | |
orElse, andThen |
Methods inherited from Function1 | |
toString, compose |
Methods inherited from MutableIterable | |
has, remove, removeAll, --, -, retain, retainAll, size0, clear |
Methods inherited from Collection | |
stringPrefix |
Methods inherited from Iterable | |
foreach, forall, exists, find, findIndexOf, indexOf, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, toList, mkString, mkString, addString, addString, copyToArray, hasDefiniteSize |
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
|
Filter
(p : (A) => Boolean) extends MutableSeq[A]
|
protected class
|
Map
[B](f : (A) => B) extends Map[B] with MutableSeq[B]
The default implementation of a map over mutable iterable collections.
|
trait
|
Projection
extends Projection
|
Method Details |
override abstract
def
elements : SeqIterator[Int, A]
override
def
isEmpty : Boolean
override
def
projection : Projection
filter
,
map
, and flatMap
methods that build projections
of the collection.override
def
length : Int
Scala Library Documentation
|
|