Scala Library
|
|
scala/Nil.scala
]
case
object
Nil
extends
List[Nothing]Method Summary | |
def
|
head
: Nothing
Returns this first element of the list.
|
override def
|
isEmpty
: Boolean
Returns true if the list does not contain any elements.
|
override def
|
productArity
: Int
return k for a product
A(x_1,...,x_k) |
override def
|
productElement
(arg0 : Int) : Any
for a product
A(x_1,...,x_k) , returns x_(n+1)
for 0 <= n < k |
override def
|
productPrefix
: java.lang.String
By default the empty string. Implementations may override this
method in order to prepend a string prefix to the result of the
toString methods.
|
protected def
|
readResolve : AnyRef |
def
|
tail
: List[Nothing]
Returns this list without its first element.
|
Methods inherited from List | |
lengthCompare, ::, +, :::, ++, reverse_:::, length, indices, elements, toList, init, last, take, slice, drop, takeRight, dropRight, splitAt, takeWhile, dropWhile, span, break, apply, map, reverseMap, foreach, filter, remove, partition, sort, count, forall, exists, find, foldLeft, foldRight, reduceLeft, reduceRight, flatMap, reverse, zip, zipWithIndex, zipAll, union, diff, --, -, flatten, intersect, removeDuplicates, stringPrefix, projection, toStream |
Methods inherited from Seq | |
size, concat, lastOption, first, firstOption, headOption, isDefinedAt, lastIndexOf, findIndexOf, indexOf, slice, contains, subseq, toArray, toSeq, equalsWith, startsWith, startsWith, endsWith, indexOf, containsSlice |
Methods inherited from Collection | |
toString |
Methods inherited from Iterable | |
/:, :\, copyToBuffer, sameElements, 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 |
Method Details |
override
def
isEmpty : Boolean
true
, iff the list is empty.
def
head : Nothing
override
def
productPrefix : java.lang.String
override
def
productArity : Int
A(x_1,...,x_k)
A(x_1,...,x_k)
, returns x_(n+1)
for 0 <= n < k
n -
the index of the element to returnIndexOutOfBoundsException -
n
elements after the first elementprotected
def
readResolve : AnyRef
Scala Library
|
|