Build a Lazy from a computation returning a value. The computation will be called at most once.
Used by the node REPL to display values. Most of the time should be the same as toString()
Evaluate the value, cache its value, and return it, or return the previously computed value.
Returns true if the computation underlying this Lazy was already performed, false otherwise.
Return a new lazy where the element was transformed by the mapper function you give.
Get a human-friendly string representation of that value.
Generated using TypeDoc
Represent a lazily evaluated value. You give a function which will return a value; that function is only called when the value is requested from Lazy, but it will be computed at most once. If the value is requested again, the previously computed result will be returned: Lazy is memoizing.