TailRec
This class represents a tailcalling computation.
Type parameters
- A
-
the result type of the computation
Attributes
- Source
- TailCalls.scala
- Graph
-
- Supertypes
Members list
Value members
Concrete methods
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.
Type parameters
- B
-
the result type of the continuation
Value parameters
- f
-
the function to apply to the result, returning a new tailcalling computation
Attributes
- Returns
-
a tailcalling computation that runs this computation and then continues with
fapplied to its result - Source
- TailCalls.scala
Continue the computation with f.
Continue the computation with f.
Type parameters
- B
-
the result type of the mapped computation
Value parameters
- f
-
the function to apply to the result, transforming
AtoB
Attributes
- Returns
-
a new tailcalling computation that produces
fapplied to the result of this computation - Source
- TailCalls.scala
Returns the result of the tailcalling computation.
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