Class/Object

fs2

Catenable

Related Docs: object Catenable | package fs2

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

    Permalink

    Returns true if there are no elements in this collection.

Concrete 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. final def ++[A2 >: A](c: Catenable[A2]): Catenable[A2]

    Permalink

    Concatenates this with c in O(1) runtime.

  5. final def +:[A2 >: A](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): 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 collect[B](f: PartialFunction[A, B]): Catenable[B]

    Permalink

    collect B from this for which f is defined *

  12. final def cons[A2 >: A](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.

  13. final def deleteFirst(f: (A) ⇒ Boolean): Option[(A, Catenable[A])]

    Permalink

    Yields to Some(a, Catenable[A]) with a removed where f holds for the first time, otherwise yields None, if a was not found Traverses only until a is found.

  14. 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
  15. 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
  16. 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
  17. 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
  18. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def flatMap[B](f: (A) ⇒ Catenable[B]): Catenable[B]

    Permalink

    Applies the supplied function to each element and returns a new catenable from the concatenated results

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

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

    Permalink

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

  24. 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()
  25. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

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

    Permalink

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

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

    Permalink
    Definition Classes
    AnyRef
  30. def nonEmpty: Boolean

    Permalink

    Returns false if there are no elements in this collection.

  31. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  33. final def snoc[A2 >: A](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.

  34. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink

    Converts to a list.

  36. def toString(): String

    Permalink
    Definition Classes
    Catenable → AnyRef → Any
  37. final def toVector: Vector[A]

    Permalink

    Converts to a vector.

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

  39. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. 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

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