]> gitweb.factorcode.org Git - factor.git/blob - basis/memoize/memoize-docs.factor
a6f78970c8ddeaa6e5518952bd48b58fe5b93ec6
[factor.git] / basis / memoize / memoize-docs.factor
1 ! Copyright (C) 2007 Slava Pestov, Daniel Ehrenberg.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: help.syntax help.markup ;
4 IN: memoize
5
6 HELP: define-memoized
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: } ;
11
12 HELP: 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 } ;