Delayed (or lazy) values are computed (with effect e
) only the first time
force
is called and cached afterwards.
Create a new delayedstd/core/delayed/delayed: (E, V) -> V
value.
Force a delayed value; the value is computed only on the first
call to force
and cached afterwards.
Create a new delayedstd/core/delayed/delayed: (E, V) -> V
value.
Given a total function to calculate a value a
, return
a total function that only calculates the value once and then
returns the cached result.
Delayed computations.
.