Skip to content

evaluate

evaluate<A>(lazy): A

Defined in: Core/Lazy.ts:49

Forces evaluation and returns the cached result. Safe to call multiple times.

A

Lazy<A>

A

const value = Lazy.evaluate(Lazy.from(() => 42)); // 42