The M. page is in the J6.02 beta version of the dictionary.
Alternatively, see  http://www.jsoftware.com/jwiki/Essays/Memoization



----- Original Message -----
From: Randy MacDonald <[EMAIL PROTECTED]>
Date: Saturday, October 27, 2007 21:15
Subject: Re: [Jbeta] M. working as designed?
To: Beta forum <[email protected]>

> Please, where is this vocabulary page on M.?
> 
> Raul Miller wrote:
> > On 10/27/07, david alis <[EMAIL PROTECTED]> wrote:
> >   
> >> What is happening is that repeated invocations of foo_with_M 
> produce>> identical results when successive arguments are the same.
> >>
> >> In this example the value of n doesn't change between invocations.
> >> Is this correct?
> >>     
> >
> > That is what it is supposed to do.
> >
> > Here's another simpler example:
> >    ? bind 1000 M. "0 ] 4#i.1 3
> > 740 105 669
> > 740 105 669
> > 740 105 669
> > 740 105 669
> >
> > Here's what the vocabulary page on M. says:
> >
> >    u M. is the same as u but may keep a record 
> of the arguments
> >    and results for reuse.
> >
> > It looks to me like M. is doing what it is supposed to be doing:
> > reusing results when some arguments are reused.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to