<promise> ( quot -- promise )


Vocabulary
promises

Inputs
quota quotation with stack effect ( -- x )


Outputs
promisea promise object


Word description
Creates a promise to return a value. When forced this quotation is called and the value returned. The value is memorized so that calling force again does not call the quotation again, instead the previous value is returned directly.

Definition