Related to the nature of the input:

  <@I.'0'=($$[:,":"0)example
+-+-+---++---+-+-+---++
|2|0|1 2||0 1|2|0|1 2||
+-+-+---++---+-+-+---++


=@@i


Tracy Harms schreef:
I'm having difficulty segregating results by item.  I'm not specifying rank 
correctly.

   example=: 9 3 $ 8 7 0 0 9
   I. '0'= ": example
4 0
0 0
2 4
0 0
0 2
4 0
0 0
2 4
0 0
What I want instead of this is a list of boxes. Each box is to contain the result of I. applied to the corresponding item of example . The first of these will be < I. {. '0'= ": example
and the final one would be
< I. {: '0'= ": example

So, I thought the right way to do this would be to apply the rank conjunction 
somewhere on or about  I.&.>
I've tried every combination I can imagine (e.g. (I.&.>)"1 and (I.&.>"_) and (I.&.(>"_)) 
and (I."_&.>) ) but they all fail to give me what I'm imagining.

I'm looking forward to learning how my mind needs to change to get the result I seek. What have I missed?
--
Tracy B. Harms

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

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

Reply via email to