Simple machine to stop. Action 6 means "halt". Please explain why index error does not occur with y=. 1 . Also, preprocessing precludes reasonable request.
(0 ; (,: ,: 0 6) ) ;: 0 NB. by default, an integer is its class NB. y=. 1 succeeds! (0 ; (,: ,: 0 6) ) ;: 1 NB. there are always at least 2 classes? (0 ; (,: ,: 0 6) ) ;: 2 |index error | (0;(,:,:0 6)) ;:2 NB. preprocessing appears to block a reasonable request (0 ; ,: ,: 0 6) ;: i. 2 NB. machine would stop before trouble |index error | (0;,:,:0 6) ;:i.2 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm