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>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal <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)
-
Constructor Details
-
Normal
private Normal()
-
-
Method Details
-
foldNormal
-
bind
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.
-