|
Scala
1.2.0.1 |
|||
A
refers to the element type of the
list, type variable This
is used to model self types of
linked lists.
Method Summary | |
def append(that: This): Unit
|
|
def apply(n: Int): A
|
|
var elem: A
|
|
def elements: Iterator[A]
Creates a new iterator over all elements contained in this object. |
|
def get(n: Int): Option[A]
|
|
def insert(that: This): Unit
|
|
def length: Int
Returns the length of the sequence. |
|
var next: This
|
|
override
|
def toList: List[A]
Transform this sequence into a list of all elements. |
Methods inherited from java/lang/Object-class |
clone, eq, equals, finalize, getClass, hashCode, notify, notifyAll, synchronized, wait, wait, wait |
Methods inherited from scala/Any-class |
!=, ==, asInstanceOf, isInstanceOf, match |
Methods inherited from scala/Iterable-class |
/:, :\, exists, find, foldLeft, foldRight, forall, foreach, sameElements |
Methods inherited from scala/Seq-class |
copyToArray, drop, indexOf, isDefinedAt, lastIndexOf, stringPrefix, subseq, take, toString |
Method Detail |
var elem: A
var next: This
def length: Int
def append(that: This): Unit
def insert(that: This): Unit
def apply(n: Int): A
def get(n: Int): Option[A]
def elements: Iterator[A]
override def toList: List[A]
|
Scala
1.2.0.1 |
|||