memoize: add description of arguments and values to MEMO: syntax in docs

Keita Haga 2011-01-26 18:53:12 +09:00
parent 27aba4035e
commit ee4ff46d05
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ HELP: define-memoized
HELP: MEMO:
{ $syntax "MEMO: word ( stack -- effect ) definition... ;" }
{ $values { "word" "a new word to define" } { "definition" "a word definition" } }
{ $description "Defines the given word at parse time as one which memoizes its output given a particular input. The stack effect is mandatory." } ;
{ define-memoized POSTPONE: MEMO: } related-words