1 ! Copyright (C) 2007 Slava Pestov, Daniel Ehrenberg.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: help.syntax help.markup ;
7 { $values { "word" "the word to be defined" } { "quot" "a quotation" } }
8 { $description "defines the given word at runtime as one which memoizes its output given a particular input" }
9 { $notes "A maximum of four input and four output arguments can be used" }
10 { $see-also POSTPONE: MEMO: } ;
13 { $syntax "MEMO: word ( stack -- effect ) definition ;" }
14 { $description "defines the given word at parsetime as one which memoizes its output given a particular input. The stack effect is mandatory." }
15 { $notes "A maximum of four input and four output arguments can be used" }
16 { $see-also define-memoized } ;