Defer is a type of Eval[A] that is used to defer computations which produce Eval[A].
Defer is a type of Eval[A] that is used to defer computations which produce Eval[A].
Users should not instantiate Defer instances themselves. Instead, they will be automatically created when needed.
FlatMap is a type of Eval[A] that is used to chain computations involving .map and .flatMap.
FlatMap is a type of Eval[A] that is used to chain computations involving .map and .flatMap. Along with Eval#flatMap it implements the trampoline that guarantees stack-safety.
Users should not instantiate FlatMap instances themselves. Instead, they will be automatically created when needed.
Unlike a traditional trampoline, the internal workings of the trampoline are not exposed. This allows a slightly more efficient implementation of the .value method.
Static Eval instance for common value false
.
Static Eval instance for common value false
.
This can be useful in cases where the same value may be needed many times.
Static Eval instance for common value 1
.
Static Eval instance for common value 1
.
This can be useful in cases where the same value may be needed many times.
Static Eval instance for common value true
.
Static Eval instance for common value true
.
This can be useful in cases where the same value may be needed many times.
Static Eval instance for common value Unit
.
Static Eval instance for common value Unit
.
This can be useful in cases where the same value may be needed many times.
Static Eval instance for common value 0
.
Static Eval instance for common value 0
.
This can be useful in cases where the same value may be needed many times.
Construct a lazy Eval[A] value without caching (i.e.
Construct a lazy Eval[A] value without caching (i.e. Always[A]).
Defer a computation which produces an Eval[A] value.
Defer a computation which produces an Eval[A] value.
This is useful when you want to delay execution of an expression which produces an Eval[A] value. Like .flatMap, it is stack-safe.
Construct a lazy Eval[A] value with caching (i.e.
Construct a lazy Eval[A] value with caching (i.e. Later[A]).
Construct an eager Eval[A] value (i.e.
Construct an eager Eval[A] value (i.e. Now[A]).