Packages

sealed abstract class Catenable[+A] extends AnyRef

Trivial catenable sequence. Supports O(1) append, and (amortized) O(1) uncons, such that walking the sequence via N successive uncons steps takes O(N). Like a difference list, conversion to a Seq[A] takes linear time, regardless of how the sequence is built up.

Source
Catenable.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Catenable
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def isEmpty: Boolean

    Returns true if there are no elements in this collection.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Catenable[A] to any2stringadd[Catenable[A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. final def ++[A2 >: A](c: Catenable[A2]): Catenable[A2]

    Concatenates this with c in O(1) runtime.

  5. final def +:[A2 >: A](a: A2): Catenable[A2]

    Alias for cons.

  6. def ->[B](y: B): (Catenable[A], B)
    Implicit
    This member is added by an implicit conversion from Catenable[A] to ArrowAssoc[Catenable[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  7. final def :+[A2 >: A](a: A2): Catenable[A2]

    Alias for snoc.

  8. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def cons[A2 >: A](a: A2): Catenable[A2]

    Returns a new catenable consisting of a followed by this.

    Returns a new catenable consisting of a followed by this. O(1) runtime.

  12. def ensuring(cond: (Catenable[A]) ⇒ Boolean, msg: ⇒ Any): Catenable[A]
    Implicit
    This member is added by an implicit conversion from Catenable[A] to Ensuring[Catenable[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: (Catenable[A]) ⇒ Boolean): Catenable[A]
    Implicit
    This member is added by an implicit conversion from Catenable[A] to Ensuring[Catenable[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean, msg: ⇒ Any): Catenable[A]
    Implicit
    This member is added by an implicit conversion from Catenable[A] to Ensuring[Catenable[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean): Catenable[A]
    Implicit
    This member is added by an implicit conversion from Catenable[A] to Ensuring[Catenable[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def foldLeft[B](z: B)(f: (B, A) ⇒ B): B

    Folds over the elements from left to right using the supplied initial value and function.

  20. final def foreach(f: (A) ⇒ Unit): Unit

    Applies the supplied function to each element, left to right.

  21. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Catenable[A] to StringFormat[Catenable[A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  22. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. final def map[B](f: (A) ⇒ B): Catenable[B]

    Applies the supplied function to each element and returns a new catenable.

  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. def nonEmpty: Boolean

    Returns false if there are no elements in this collection.

  28. final def notify(): Unit
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  30. final def snoc[A2 >: A](a: A2): Catenable[A2]

    Returns a new catenable consisting of this followed by a.

    Returns a new catenable consisting of this followed by a. O(1) runtime.

  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. final def toList: List[A]

    Converts to a list.

  33. def toString(): String
    Definition Classes
    Catenable → AnyRef → Any
  34. final def toVector: Vector[A]

    Converts to a vector.

  35. final def uncons: Option[(A, Catenable[A])]

    Returns the head and tail of this catenable if non empty, none otherwise.

    Returns the head and tail of this catenable if non empty, none otherwise. Amortized O(1).

  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def [B](y: B): (Catenable[A], B)
    Implicit
    This member is added by an implicit conversion from Catenable[A] to ArrowAssoc[Catenable[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Catenable[A] to any2stringadd[Catenable[A]]

Inherited by implicit conversion StringFormat from Catenable[A] to StringFormat[Catenable[A]]

Inherited by implicit conversion Ensuring from Catenable[A] to Ensuring[Catenable[A]]

Inherited by implicit conversion ArrowAssoc from Catenable[A] to ArrowAssoc[Catenable[A]]

Ungrouped