Thanks very much. I think these solutions give the correct answer, but they don't seem to group the pieces the way I want them grouped. I think I didn't correctly specify the problem. I thought my description which described the grouping requirement would make up for the weak example.
As I am composing this reply, I see that Raul has commented on this issue. 2010/2/2 Aai <[email protected]>: > Indices more compact: > > ([:; <@( (+/@])`(*/@])`(>./@])`($0:)@.(3 <. (|{.)))"_1) > > > Hallo R.E. Boss, je schreef op 02-02-10 11:52: >> Or tacitly (NB. wrap around) >> >> (5 ?...@$ 4) ([:; <@( (+/@])`(*/@])`(>./@])`($0:)@.([: ]`3:@.(2<]) (|{.)) >> )"0 1) 5 4 ?...@$ 20 >> 52 19 38 30 >> >> >> >> > > -- > Met vriendelijke groet, > =@@i > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > -- (B=) <-----my sig Brian Schott ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
