Skip to content

from

from<A>(f): Lazy<A>

Defined in: Core/Lazy.ts:27

Wraps a thunk in a Lazy. The thunk runs exactly once, on first evaluate.

A

() => A

Lazy<A>

const expensive = Lazy.from(() => computeExpensiveValue(input));