Packages

case class Done[A](value: A) extends TailRec[A] with Product with Serializable

Internal class representing the final result returned from a tailcalling computation

Attributes
protected
Source
TailCalls.scala
Linear Supertypes
Serializable, java.io.Serializable, Product, Equals, TailRec[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Done
  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 Done(value: A)

Value Members

  1. final def flatMap[B](f: (A) ⇒ 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
  2. final def map[B](f: (A) ⇒ B): TailRec[B]

    Continue the computation with f.

    Continue the computation with f.

    Definition Classes
    TailRec
  3. final def result: A

    Returns the result of the tailcalling computation.

    Returns the result of the tailcalling computation.

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

    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()
  5. val value: A