|
Scala 2
|
class
MutableList
[ A ]
extends
java.lang.Object with
Seq with
PartialFunction with
ScalaObjectBuffer
,
Stack
, and Queue
.Def Summary | |
protected
|
def
appendElem
( elem : A )
: scala.Unit
|
def
apply
( n : scala.Int )
: A
Returns the n th element of this list. This method
yields an error if the element does not exist.
|
|
def
elements
: Iterator
Returns an iterator over all elements of this list. |
|
def
get
( n : scala.Int )
: Option
Returns the n th element of this list or None
if this element does not exist.
|
|
def
length
: scala.Int
Returns the length of this list. |
|
protected
|
def
prependElem
( elem : A )
: scala.Unit
|
protected
|
def
reset
: scala.Unit
|
override protected
|
def
stringPrefix
: java.lang.String
|
override
|
def
toList
: List
Returns an instance of scala.List containing the same
sequence of elements.
|
Def Detail |
def
appendElem
( elem : A ) : scala.Unit
def
apply
( n : scala.Int ) : A
n
th element of this list. This method
yields an error if the element does not exist.def
elements
: Iterator
def
get
( n : scala.Int ) : Option
n
th element of this list or None
if this element does not exist.def
length
: scala.Int
def
prependElem
( elem : A ) : scala.Unit
def
reset
: scala.Unit
def
stringPrefix
: java.lang.String
def
toList
: List
scala.List
containing the same
sequence of elements.