MEMO:
Factor handbook > The language > Memoization

Next:define-memoized ( word quot effect -- )


Vocabulary
memoize

Syntax
MEMO: word ( stack -- effect ) definition... ;


Inputs and outputs
worda new word to define
definitiona word definition


Word description
Defines the given word at parse time as one which memoizes its output given a particular input. The stack effect is mandatory.

See also
define-memoized

Definition