I foolishly edited the email after clipping it from my session...

At 20:23  -0800 2006/03/25, Joey K Tuttle wrote:
   a =: 0 0 0 0 0 0 0 0

   ]a =: 3 inc a
0 0 0 1 0 0 0 0

   5 2 inc^:4 a  NB. increment items 5 and 2 - do it 4 times.
0 0 4 0 0 4 0 0


is clearly "magic" ... of course it would really be

   a =: 0 0 0 0 0 0 0 0

   ]a=: 3 inc a
0 0 0 1 0 0 0 0

   5 2 inc^:4 a  NB. increment items 5 and 2 - do it 4 times.
0 0 4 1 0 4 0 0

Sorry for any confusion caused by shooting myself in the foot...

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

Reply via email to