Packages

abstract class TailRec[+A] extends AnyRef

This class represents a tailcalling computation

Source
TailCalls.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TailRec
  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

Instance Constructors

  1. new TailRec()

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.

  2. final def map[B](f: (A) ⇒ B): TailRec[B]

    Continue the computation with f.

  3. final def result: A

    Returns the result of the tailcalling computation.

    Returns the result of the tailcalling computation.

    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.

    Annotations
    @tailrec()