Package fj.data
Class Eval.Later<A>
java.lang.Object
fj.data.Eval<A>
fj.data.Eval.Later<A>
Represents a lazy computation that is evaluated only once.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) final Eval.TrampolineEval<A> Transforms the current instance into a trampoline instance.final Avalue()Evaluates the computation and return its result.
-
Field Details
-
memo
-
-
Constructor Details
-
Later
-
-
Method Details
-
value
Description copied from class:EvalEvaluates the computation and return its result. Depending on whether the current instance is lazy or eager the computation may or may not happen at this point. -
asTrampoline
Description copied from class:EvalTransforms the current instance into a trampoline instance.- Specified by:
asTrampolinein classEval<A>
-