Type alias Lazy<L>

Lazy<L>: DeferredLazy<L> | KnownLazy<L>

The lazy evaluated value of type L. It is useful to improve evaluating the data structure eagerly produces infinite recursion. You can get the actual value by calling force function.

Once evaluated the deferred function, the known value will be cached. You should not provide a function which has no referential transparency.

Type Parameters

  • L

Generated using TypeDoc