You realize, I hope, that in your example (where you are choosing between y and ]) that the value of y is 5 and the value from ] is 0 1 2 3?
But I do not know enough about what end result you want, to tell you about what you should be using. Does this help? Thanks, -- Raul On 7/6/14, Linda Alvord <[email protected]> wrote: > Here's something I have not understood for a long time: g is the result I > want > > H is not the result I want > g=: 13 :'>: ((],-)i.)<: y' > > h=: 13 :'>: ((y,-)i.)<: y' > > In both cases y and ] in this example seem to be 5 > > g 5 > 1 2 3 4 5 4 3 2 > > h 5 > 6 5 4 3 2 > > 5!:4 <'g' > -- [: > +- >: > │ -- [: > --+ │ -- ] > │ │ -----+- , > L----+----+ L- - > │ L- i. > L- <: > > > 5!:4 <'h' > -- 3 > -- : -+- ,:'>: ((y,-)i.)<: y' > > > How can you tell when you should be using ] instead of y ? > > Linda > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
