Mercurial > octave
view test/nest/nst2.m @ 31246:43a6be589387
doc: New documentation for memoization techniques (bug #60860)
vectorize.texi: New section on memoization
octave.texi: List new section
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Thu, 29 Sep 2022 20:31:52 -0400 |
parents | 6e9034836239 |
children |
line wrap: on
line source
function fh = nst2 (pval) persistent p if (nargin > 0) p = pval; end fh = @nst; function r = nst (pval) if (nargin > 0) p = pval; end r = p; end end