Class/Object

fs2.util

Catenable

Related Docs: object Catenable | package util

Permalink

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

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    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. def ++[A2 >: A](c: Catenable[A2])(implicit T: RealSupertype[A, A2]): Catenable[A2]

    Permalink

    Concatenates this with c in O(1) runtime.

  5. final def +:[A2 >: A](a: A2)(implicit T: RealSupertype[A, A2]): Catenable[A2]

    Permalink

    Alias for cons.

  6. def ->[B](y: B): (Catenable[A], B)

    Permalink
    Implicit information
    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)(implicit T: RealSupertype[A, A2]): Catenable[A2]

    Permalink

    Alias for snoc.

  8. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def cons[A2 >: A](a: A2)(implicit T: RealSupertype[A, A2]): Catenable[A2]

    Permalink

    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]

    Permalink
    Implicit information
    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]

    Permalink
    Implicit information
    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]

    Permalink
    Implicit information
    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]

    Permalink
    Implicit information
    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

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Permalink
    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

    Permalink

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

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

    Permalink

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

  21. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    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[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  24. def isEmpty: Boolean

    Permalink

    Returns true if there are no elements in this collection.

  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. def map[B](f: (A) ⇒ B): Catenable[B]

    Permalink

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

  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def snoc[A2 >: A](a: A2)(implicit T: RealSupertype[A, A2]): Catenable[A2]

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  32. final def toList: List[A]

    Permalink

    Converts to a list.

  33. def toString(): String

    Permalink
    Definition Classes
    Catenable → AnyRef → Any
  34. def uncons: Option[(A, Catenable[A])]

    Permalink

    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).

  35. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def [B](y: B): (Catenable[A], B)

    Permalink
    Implicit information
    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

Deprecated Value Members

  1. def ::[A2 >: A](a: A2)(implicit T: RealSupertype[A, A2]): Catenable[A2]

    Permalink

    Deprecated alias for cons.

    Deprecated alias for cons.

    Annotations
    @deprecated
    Deprecated

    (Since version Use cons or +: instead) 0.9.3

  2. def push[A2 >: A](a: A2)(implicit T: RealSupertype[A, A2]): Catenable[A2]

    Permalink

    Deprecated alias for cons.

    Deprecated alias for cons.

    Annotations
    @deprecated
    Deprecated

    (Since version Use cons or +: instead) 0.9.3

  3. def toStream: scala.collection.immutable.Stream[A]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version Use toList instead) 0.9.3

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