arrow-core-data / arrow.core / Eval / Always
data class Always<out A> :
Eval
<A>
Construct a lazy Eval instance.
This type can be used for “lazy” values. In some sense it is equivalent to using a Function0 value.
This type will evaluate the computation every time the value is required. It should be avoided except when laziness is required and caching must be avoided. Generally, prefer Later.
<init> | Construct a lazy Eval instance.Always(f: () -> A) |
memoize | fun memoize(): Eval <A> |
toString | fun toString(): String |
value | fun value(): A |
Do you like Arrow?
✖