Package fj.control
Class Trampoline.Normal<A>
- java.lang.Object
-
- fj.control.Trampoline<A>
-
- fj.control.Trampoline.Normal<A>
-
- Direct Known Subclasses:
Trampoline.Pure
,Trampoline.Suspend
- Enclosing class:
- Trampoline<A>
private abstract static class Trampoline.Normal<A> extends Trampoline<A>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Normal()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <B> Trampoline<B>
bind(F<A,Trampoline<B>> f)
Binds the given continuation to the result of this trampoline.abstract <R> R
foldNormal(F<A,R> pure, F<P1<Trampoline<A>>,R> k)
-
-
-
Method Detail
-
bind
public final <B> Trampoline<B> bind(F<A,Trampoline<B>> f)
Description copied from class:Trampoline
Binds the given continuation to the result of this trampoline.- Specified by:
bind
in classTrampoline<A>
- Parameters:
f
- A function that constructs a trampoline from the result of this trampoline.- Returns:
- A new trampoline that runs this trampoline, then continues with the given function.
-
-