On Tue, Oct 18, 2011 at 8:43 AM, Nick Simicich <[email protected]> wrote: > Can I define any function and clear memoization? (I tested that, does not > work, even when the function you define also uses memoization.)
I am surprised that function redefinition does not clear the memoization, but maybe the memo is keyed by the function definition? Anyways, I would try updating the definition with an extraneous constant. Since J does not do data flow analysis, that should be sufficient. In other words, if you have something like: F=: f&([ 23&]) M. then changing the number should get you a fresh set of memo buckets (if my hypothesis about M. implementation is correct). -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
