]> gitweb.factorcode.org Git - factor.git/commitdiff
memoize: add description of arguments and values to MEMO: syntax in docs
authorKeita Haga <keitahaga@mail.com>
Wed, 26 Jan 2011 09:53:12 +0000 (18:53 +0900)
committerKeita Haga <keitahaga@mail.com>
Wed, 26 Jan 2011 09:53:12 +0000 (18:53 +0900)
basis/memoize/memoize-docs.factor

index 2fc7f6c260d14940e2fb7bbfc12a32aba0c0a31b..426bd2916cf0106085733634a0b966007c8d702f 100644 (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