Attributes
- Companion
- class
- Source
- Eval.scala
- Graph
-
- Supertypes
- Self type
-
Eval.type
Members list
Type members
Classlikes
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.
Attributes
- Source
- Eval.scala
- Supertypes
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.
Attributes
- Source
- Eval.scala
- Supertypes
- Self type
-
FlatMap[A]
A Leaf does not depend on any other Eval so calling .value does not trigger any flatMaps or defers
A Leaf does not depend on any other Eval so calling .value does not trigger any flatMaps or defers
Attributes
- Source
- Eval.scala
- Supertypes
- Known subtypes
Value members
Concrete methods
Construct a lazy Eval[A] value without caching (i.e.
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.
Attributes
- Source
- Eval.scala
Construct a lazy Eval[A] value with caching (i.e.
Concrete fields
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.
Attributes
- Source
- Eval.scala
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.
Attributes
- Source
- Eval.scala
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.
Attributes
- Source
- Eval.scala
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.
Attributes
- Source
- Eval.scala
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.
Attributes
- Source
- Eval.scala
Implicits
Inherited implicits
Attributes
- Inherited from:
- EvalInstances (hidden)
- Source
- Eval.scala
Attributes
- Inherited from:
- EvalInstances (hidden)
- Source
- Eval.scala
Attributes
- Inherited from:
- EvalInstances1 (hidden)
- Source
- Eval.scala
Attributes
- Inherited from:
- EvalInstances (hidden)
- Source
- Eval.scala
Attributes
- Inherited from:
- EvalInstances0 (hidden)
- Source
- Eval.scala
Attributes
- Inherited from:
- EvalInstances (hidden)
- Source
- Eval.scala
Attributes
- Inherited from:
- EvalInstances0 (hidden)
- Source
- Eval.scala
Attributes
- Inherited from:
- EvalInstances (hidden)
- Source
- Eval.scala
Attributes
- Inherited from:
- EvalInstances (hidden)
- Source
- Eval.scala
Attributes
- Inherited from:
- EvalInstances1 (hidden)
- Source
- Eval.scala