Handbook
Glossary
<lazy> ( quot -- lazy )
Vocabulary
lazy
Inputs
quot
a
quotation
with stack effect
( -- x )
Outputs
lazy
a
lazy
Word description
Creates a lazy to return a value. When forced this quotation is called and the value returned. The value is memoized so that calling
force
again does not call the quotation again, instead the previous value is returned directly.
Definition
USING:
kernel
;
IN:
lazy
:
<lazy>
( quot -- lazy )
+unforced+
f
lazy
boa
;