Packages

case class Cont[A, B](a: TailRec[A], f: (A) ⇒ TailRec[B]) extends TailRec[B] with Product with Serializable

Internal class representing a continuation with function A => TailRec[B]. It is needed for the flatMap to be implemented.

Attributes
protected
Source
TailCalls.scala
Linear Supertypes
Serializable, java.io.Serializable, Product, Equals, TailRec[B], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Cont
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. TailRec
  7. AnyRef
  8. 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

Instance Constructors

  1. new Cont(a: TailRec[A], f: (A) ⇒ TailRec[B])

Value Members

  1. val a: TailRec[A]
  2. val f: (A) ⇒ TailRec[B]
  3. final def flatMap[B](f: (B) ⇒ TailRec[B]): TailRec[B]

    Continue the computation with f and merge the trampolining of this computation with that of f.

    Continue the computation with f and merge the trampolining of this computation with that of f.

    Definition Classes
    TailRec
  4. final def map[B](f: (B) ⇒ B): TailRec[B]

    Continue the computation with f.

    Continue the computation with f.

    Definition Classes
    TailRec
  5. final def result: B

    Returns the result of the tailcalling computation.

    Returns the result of the tailcalling computation.

    Definition Classes
    TailRec
    Annotations
    @tailrec()
  6. final def resume: scala.Either[() ⇒ TailRec[B], B]

    Returns either the next step of the tailcalling computation, or the result if there are no more steps.

    Returns either the next step of the tailcalling computation, or the result if there are no more steps.

    Definition Classes
    TailRec
    Annotations
    @tailrec()