Scala Library
|
|
scala/collection/immutable/Stream.scala
]
object
Empty
extends
Stream[Nothing]Method Summary | |
override def
|
head
: Nothing
The first element of this stream
|
override def
|
isEmpty
: Boolean
is this stream empty?
|
override def
|
tail
: Nothing
A stream consisting of the remaining elements of this stream after the first one.
|
def
|
tailDefined
: Boolean
Is the tail of this stream defined?
|
Methods inherited from Stream | |
companion, append, force, print, print, toStream, hasDefiniteSize, ++, ++, map, flatMap, filter, partition, zip, zipWithIndex, addString, take, slice, init, takeRight, takeWhile, dropWhile, removeDuplicates, padTo, reverse, stringPrefix |
Methods inherited from LinearSequenceTemplate | |
length, apply, iterator, foreach, forall, exists, count, find, foldLeft, foldRight, reduceLeft, reduceRight, last, drop, dropRight, span, sameElements, lengthCompare, isDefinedAt, segmentLength, indexWhere, lastIndexWhere, equals |
Methods inherited from Sequence | |
hashCode |
Methods inherited from SequenceTemplate | |
size, zipAll, prefixLength, indexWhere, findIndexOf, indexOf, indexOf, lastIndexOf, lastIndexOf, lastIndexWhere, reverseIterator, reversedElements, startsWith, startsWith, endsWith, indexOfSeq, indexOfSeq, lastIndexOfSeq, lastIndexOfSeq, contains, union, diff, intersect, patch, toSequence, indices, view, view, toString, sortWith, findLastIndexOf, slice, equalsWith, containsSlice, projection |
Methods inherited from PartialFunction | |
orElse, andThen |
Methods inherited from Function1 | |
compose |
Methods inherited from IterableTemplate | |
elements, toIterable, first, firstOption, toSeq |
Methods inherited from TraversableClass | |
newBuilder, genericBuilder, unzip, flatten, transpose |
Methods inherited from TraversableTemplate | |
thisCollection, nonEmpty, filterMap, filterNot, remove, groupBy, /:, :\, reduceLeftOption, reduceRightOption, headOption, lastOption, splitAt, copyToBuffer, copyToArray, copyToArray, toArray, toList, toSet, mkString, mkString, mkString, addString, addString |
Methods inherited from AnyRef | |
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
override
def
isEmpty : Boolean
override
def
head : Nothing
override
def
tail : Nothing
def
tailDefined : Boolean
Scala Library
|
|