arrow-core-data / arrow.core / Eval / Now

Now

data class Now<out A> : Eval<A>

Construct an eager Eval instance. In some sense it is equivalent to using a val.

This type should be used when an A value is already in hand, or when the computation to produce an A value is pure and very fast.

Constructors

<init> Construct an eager Eval instance. In some sense it is equivalent to using a val.Now(value: A)

Properties

value val value: A

Functions

memoize fun memoize(): Eval<A>
value fun value(): A