My thoughts on this thread: ]&(%0 1,:1 0) 0 _ 1 1 _ f=:]&(%0 1,:1 0) f 0 _ 1 1 _ f 2 _ 1 1 _ ]A=:%0 1,:1 0 _ 1 1 _ NB. u&n y is defined as y u n g=:]&A g 0 _ 1 1 _ g 2 _ 1 1 _ h=: 13 :'y]A' NB. This says "display A" h 0 _ 1 1 _ h 2 _ 1 1 _ h (2 2$_ 1 1 _) ]~ ]
Script works in both versions of J7: ]&(%0 1,:1 0) f=:]&(%0 1,:1 0) f 0 f 2 ]A=:%0 1,:1 0 NB. u&n y is defined as y u n g=:]&A g 0 g 2 h=: 13 :'y]A' h 0 h 2 h It looks like J6 wasn't ready for this concept. Linda -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Raul Miller Sent: Tuesday, January 08, 2013 5:36 PM To: Beta forum Subject: [Jbeta] undisplayable function 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 -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
