arrow-core-data / arrow.core / Eval / Always / <init>


Always(f: () -> 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.

Do you like Arrow?

Arrow Org