|
Scala Library
|
|
trait
MutableList[A]
extends Seq[A]Buffer,
Stack, and Queue.| Value Summary | |
protected var
|
first0 : LinkedList[A] |
protected var
|
last0 : LinkedList[A] |
protected var
|
len : Int |
| Method Summary | |
protected def
|
appendElem (elem : A) : Unit |
def
|
apply
(n : Int) : A
Returns the
nth element of this list. This method
yields an error if the element does not exist. |
override def
|
elements
: Iterator[A]
Returns an iterator over all elements of this list.
|
def
|
get
(n : Int) : Option[A]
Returns the
nth element of this list or None
if this element does not exist. |
override def
|
last
: A
Returns the last element of this list.
|
def
|
length
: Int
Returns the length of this list.
|
protected def
|
prependElem (elem : A) : Unit |
protected def
|
reset : Unit |
protected override def
|
stringPrefix
: java.lang.String
Defines the prefix of this object's
toString representation. |
override def
|
toList
: List[A]
Returns an instance of
scala.List containing the same
sequence of elements. |
| Methods inherited from Seq | |
| lengthCompare, size, isEmpty, concat, lastOption, first, firstOption, headOption, ++, isDefinedAt, lastIndexOf, findIndexOf, indexOf, map, flatMap, filter, take, drop, slice, slice, takeWhile, dropWhile, reverse, contains, subseq, toArray, toSeq, projection, equalsWith, startsWith, startsWith, endsWith, indexOf, containsSlice |
| Methods inherited from Collection | |
| toString |
| Methods inherited from Iterable | |
| partition, foreach, forall, exists, find, foldLeft, foldRight, /:, :\, reduceLeft, reduceRight, copyToBuffer, sameElements, 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 |
| Value Details |
| Method Details |
def
length : Int
nth element of this list. This method
yields an error if the element does not exist.nth element of this list or None
if this element does not exist.protected
def
reset : Unit
override
def
last : A
scala.List containing the same
sequence of elements.protected override
def
stringPrefix : java.lang.String
toString representation.|
Scala Library
|
|