MEMO:
Factor documentation > Factor handbook > The language > Memoization
Next:define-memoized ( word quot effect -- )


Vocabulary
memoize

Syntax
MEMO: word ( stack -- effect ) 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
USING: effects.parser ;

IN: memoize

SYNTAX: MEMO: (:) define-memoized ;