strawman.collections.CollectionStrawMan6.LazyList

Empty

Related Doc: package LazyList

object Empty extends LazyList[Nothing]

Linear Supertypes
LazyList[Nothing], LinearSeq[Nothing], LinearSeqLike[Nothing, LinearSeq], Seq[Nothing], ArrayLike[Nothing], SeqLike[Nothing, LazyList], SeqMonoTransforms[Nothing, LazyList[Nothing]], Iterable[Nothing], IterableLike[Nothing, LazyList], IterablePolyTransforms[Nothing, LazyList], IterableMonoTransforms[Nothing, LazyList[Nothing]], IterableOps[Nothing], FromIterable[LazyList], IterableOnce[Nothing], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Empty
  2. LazyList
  3. LinearSeq
  4. LinearSeqLike
  5. Seq
  6. ArrayLike
  7. SeqLike
  8. SeqMonoTransforms
  9. Iterable
  10. IterableLike
  11. IterablePolyTransforms
  12. IterableMonoTransforms
  13. IterableOps
  14. FromIterable
  15. IterableOnce
  16. AnyRef
  17. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. def #::[B >: Nothing](elem: ⇒ B): LazyList[B]

    Definition Classes
    LazyList
  4. def ++[B >: Nothing](xs: IterableOnce[B]): LazyList[B]

    Concatenation

    Concatenation

    Definition Classes
    IterablePolyTransforms
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  6. def apply(n: Int): Nothing

    apply is defined in terms of drop, which is in turn defined in terms of tail.

    apply is defined in terms of drop, which is in turn defined in terms of tail.

    Definition Classes
    LinearSeqArrayLike
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def className: String

    The class name of this collection.

    The class name of this collection. To be used for converting to string. Collections generally print like this:

    <className>(elem_1, ..., elem_n)

    Definition Classes
    LazyListIterableOps
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def coll: Empty.this.type

    The collection itself

    The collection itself

    Attributes
    protected
    Definition Classes
    IterableIterablePolyTransformsIterableMonoTransformsIterableOps
  11. def copyToArray[B >: Nothing](xs: Array[B], start: Int = 0): xs.type

    Copy all elements of this collection to array xs, starting at start.

    Copy all elements of this collection to array xs, starting at start.

    Definition Classes
    IterableOps
  12. def drop(n: Int): LinearSeq[Nothing]

    Optimized version of drop that avoids copying Note: drop is defined here, rather than in a trait like LinearSeqMonoTransforms, because the ...MonoTransforms traits make no assumption about the type of Repr whereas we need to assume here that Repr is the same as the underlying collection type.

    Optimized version of drop that avoids copying Note: drop is defined here, rather than in a trait like LinearSeqMonoTransforms, because the ...MonoTransforms traits make no assumption about the type of Repr whereas we need to assume here that Repr is the same as the underlying collection type.

    Definition Classes
    LinearSeqLikeIterableMonoTransforms
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def filter(p: (Nothing) ⇒ Boolean): LazyList[Nothing]

    All elements satisfying predicate p

    All elements satisfying predicate p

    Definition Classes
    IterableMonoTransforms
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. def flatMap[B](f: (Nothing) ⇒ IterableOnce[B]): LazyList[B]

    Flatmap

    Flatmap

    Definition Classes
    IterablePolyTransforms
  18. def foldLeft[B](z: B)(op: (B, Nothing) ⇒ B): B

    Fold left

    Fold left

    Definition Classes
    IterableOps
  19. def foldRight[B](z: B)(op: (Nothing, B) ⇒ B): B

    Fold right

    Fold right

    Definition Classes
    IterableOps
  20. def force: Evaluated[Nothing]

    Definition Classes
    LazyList
  21. def foreach(f: (Nothing) ⇒ Unit): Unit

    Apply f to each element for tis side effects

    Apply f to each element for tis side effects

    Definition Classes
    IterableOps
  22. def fromIterable[B](c: Iterable[B]): LazyList[B]

    Definition Classes
    LazyListIterablePolyTransformsFromIterable
  23. def fromIterableWithSameElemType(coll: Iterable[Nothing]): LazyList[Nothing]

    Create a collection of type C[A] from the elements of coll, which has the same element type as this collection.

    Create a collection of type C[A] from the elements of coll, which has the same element type as this collection. Overridden in StringOps and ArrayOps.

    Attributes
    protected[this]
    Definition Classes
    IterableLikeIterableMonoTransforms
  24. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  25. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  26. def head: Nothing

    The first element of the collection.

    The first element of the collection.

    Definition Classes
    LazyListLinearSeqIterableOps
  27. def indexWhere(p: (Nothing) ⇒ Boolean): Int

    The index of the first element in this collection for which p holds.

    The index of the first element in this collection for which p holds.

    Definition Classes
    IterableOps
  28. def isEmpty: Boolean

    To be overridden in implementations:

    To be overridden in implementations:

    Definition Classes
    LazyListLinearSeqIterableOps
  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. def iterator: Iterator[Nothing]

    iterator is overridden in terms of head and tail

    iterator is overridden in terms of head and tail

    Definition Classes
    LinearSeqIterableOnce
  31. def knownSize: Int

    The number of elements in this collection, if it can be cheaply computed, -1 otherwise.

    The number of elements in this collection, if it can be cheaply computed, -1 otherwise. Cheaply usually means: Not requiring a collection traversal.

    Definition Classes
    IterableOps
  32. def length: Int

    length is defined in terms of iterator

    length is defined in terms of iterator

    Definition Classes
    LinearSeqArrayLike
  33. def map[B](f: (Nothing) ⇒ B): LazyList[B]

    Map

    Map

    Definition Classes
    IterablePolyTransforms
  34. def mkString(sep: String): String

    A string showing all elements of this collection, separated by string sep.

    A string showing all elements of this collection, separated by string sep.

    Definition Classes
    IterableOps
  35. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  36. final def notify(): Unit

    Definition Classes
    AnyRef
  37. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  38. def partition(p: (Nothing) ⇒ Boolean): (LazyList[Nothing], LazyList[Nothing])

    A pair of, first, all elements that satisfy prediacte p and, second, all elements that do not.

    A pair of, first, all elements that satisfy prediacte p and, second, all elements that do not. Interesting because it splits a collection in two.

    The default implementation provided here needs to traverse the collection twice. Strict collections have an overridden version of partition in Buildable, which requires only a single traversal.

    Definition Classes
    IterableMonoTransforms
  39. def reverse: LazyList[Nothing]

    Definition Classes
    SeqMonoTransforms
  40. def size: Int

    The number of elements in this collection.

    The number of elements in this collection. Does not terminate for infinite collections.

    Definition Classes
    IterableOps
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  42. def tail: LazyList[Nothing]

    The rest of the collection without its first element.

    The rest of the collection without its first element.

    Definition Classes
    LazyListLinearSeqIterableMonoTransforms
  43. def take(n: Int): LazyList[Nothing]

    A collection containing the first n elements of this collection.

    A collection containing the first n elements of this collection.

    Definition Classes
    IterableMonoTransforms
  44. def to[C[X] <: Iterable[X]](fi: FromIterable[C]): C[Nothing]

    Given a collection factory fi for collections of type constructor C, convert this collection to one of type C[A].

    Given a collection factory fi for collections of type constructor C, convert this collection to one of type C[A]. Example uses:

    xs.to(List) xs.to(ArrayBuffer)

    Definition Classes
    IterableOps
  45. def toArray[B >: Nothing](implicit arg0: ClassTag[B]): Array[B]

    Convert collection to array.

    Convert collection to array.

    Definition Classes
    IterableOps
  46. def toString(): String

    Definition Classes
    LazyListIterableOps → AnyRef → Any
  47. def view: View[Nothing]

    A view representing the elements of this collection.

    A view representing the elements of this collection.

    Definition Classes
    IterableOps
  48. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. def zip[B](xs: IterableOnce[B]): LazyList[(Nothing, B)]

    Zip.

    Zip. Interesting because it requires to align to source collections.

    Definition Classes
    IterablePolyTransforms

Inherited from LazyList[Nothing]

Inherited from LinearSeq[Nothing]

Inherited from LinearSeqLike[Nothing, LinearSeq]

Inherited from Seq[Nothing]

Inherited from ArrayLike[Nothing]

Inherited from SeqLike[Nothing, LazyList]

Inherited from SeqMonoTransforms[Nothing, LazyList[Nothing]]

Inherited from Iterable[Nothing]

Inherited from IterableLike[Nothing, LazyList]

Inherited from IterablePolyTransforms[Nothing, LazyList]

Inherited from IterableMonoTransforms[Nothing, LazyList[Nothing]]

Inherited from IterableOps[Nothing]

Inherited from FromIterable[LazyList]

Inherited from IterableOnce[Nothing]

Inherited from AnyRef

Inherited from Any

Ungrouped