I think I would use _1^0= 2 6 ?.@$ 2 _1 _1 _1 _1 1 _1 _1 _1 _1 1 1 _1 Reading back through this thread, I see that Roger Hui has already suggested almost exactly this.
-- Raul On Mon, Dec 10, 2012 at 7:13 PM, Brian Schott <[email protected]> wrote: > Is there a better way than the verb `am` to do the following? > > am =:_1& (I.@:-.@]}) > am"1] 2 6 ?.@$ 2 > _1 _1 _1 _1 1 _1 > _1 _1 _1 1 1 _1 > > (B=) > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
