I was going to say that I don't get that result in J 6.02:

   ]&(%0 1,:1 0)
]&(2 2$_ 1 1 _)

... but then realized that I switched the libj.dylib file in "J6" to

  9!:14''
j701/2011-01-10/11:25

But maybe that's a solution to your problems with J 6.02 ?

                                      Patrick

On Tue, 8 Jan 2013, Raul Miller wrote:
Here's a problem that shows up in J 6.02 but not J 7.01.  I'm not sure
if it will ever be fixed for J 6.

  ]&(%0 1,:1 0)
|NaN error

but

  ]&(%0 1,:1 0) 0
_ 1
1 _

That said, note also that it's quirky to reproduce under J 6.02 (the
shape of the array seems to matter).  I'm using the 64 bit version if
that matters.

  9!:14''
j602/2008-03-03/16:45


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

Reply via email to