Document with-memoization
* doc/misc/cl.texi (Modify Macros): Document with-memoization.
This commit is contained in:
@@ -1245,6 +1245,12 @@ blocks for other macros like @code{cl-incf}, and @code{cl-pushnew}.
|
||||
The @code{cl-letf} and @code{cl-letf*} macros are used in the processing
|
||||
of symbol macros; @pxref{Macro Bindings}.
|
||||
|
||||
@defmac with-memoization @var{place} @var{code}@dots{}
|
||||
This macro provides a simple way to do memoization. @var{code} is
|
||||
evaluated and then stashed in @var{place}. If @var{place}'s value is
|
||||
non-@code{nil}, return that value instead of evaluating @var{code}.
|
||||
@end defmac
|
||||
|
||||
|
||||
@node Variable Bindings
|
||||
@section Variable Bindings
|
||||
|
||||
Reference in New Issue
Block a user