<@(*/\.)\ 3 # 2 +-+---+------+ |2 |4 2|8 4 2| +-+---+------+ |. <\. */\. 3 # 2 +-+---+------+ |2 |4 2|8 4 2| +-+---+------+
On Mon, Oct 21, 2013 at 6:41 AM, Pascal Jasmin <[email protected]>wrote: > probably more what you want: > > > >(#~ (a: ~: ])"0)each <"1 (+:@{.,])each ^:(<3) <2 > ┌─┬───┬─────┐ > │2│4 2│8 4 2│ > └─┴───┴─────┘ > > > ________________________________ > From: Pascal Jasmin <[email protected]> > To: "[email protected]" <[email protected]> > Sent: Monday, October 21, 2013 8:59:11 AM > Subject: Re: [Jprogramming] boxing the result of power > > > if you use you get an easier starting point to accumulate results without > fills > > (+:each@{.,])^:(<3) <2 > > > ┌─┬─┬─┐ > │2│ │ │ > ├─┼─┼─┤ > │4│2│ │ > ├─┼─┼─┤ > │8│4│2│ > └─┴─┴─┘ > > then, > > (#~ (a: ~: ])"0)each <"1 (+:each@{.,])^:(<3) <2 > > > ┌───┬─────┬───────┐ > │┌─┐│┌─┬─┐│┌─┬─┬─┐│ > ││2│││4│2│││8│4│2││ > │└─┘│└─┴─┘│└─┴─┴─┘│ > └───┴─────┴───────┘ > > ----- Original Message ----- > From: June Kim (김창준) <[email protected]> > To: Programming forum <[email protected]> > Cc: > Sent: Monday, October 21, 2013 2:40:23 AM > Subject: [Jprogramming] boxing the result of power > > (+:@{.,])^:(<3) 2 > 2 0 0 > 4 2 0 > 8 4 2 > > Is there any simple way to box the result so that it is 2;4 2;8 4 2 ? > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
