TailRec

scala.util.control.TailCalls$.TailRec
sealed abstract class TailRec[+A]

This class represents a tailcalling computation

Attributes

Source
TailCalls.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

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.

Attributes

Source
TailCalls.scala
final def map[B](f: A => B): TailRec[B]

Continue the computation with f.

Continue the computation with f.

Attributes

Source
TailCalls.scala
final def result: A

Returns the result of the tailcalling computation.

Returns the result of the tailcalling computation.

Attributes

Source
TailCalls.scala
final def resume: 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.

Attributes

Source
TailCalls.scala