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.

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to