That's Brian's code! (Which, incidentally, matches the original's
alignment - mine left justified the result numbers instead of right
justifying them.)

Meanwhile, here's a variation which combines some of my approach with
Brian's (and, as a bonus, does not turn boxing into whitespace):

   ;"1('       ',~],' X ',[,' = ',2":*&".)&":/&.>{1 2(+ i.)&.>9 4

(I was hoping to use *&.". instead of 2":*&". but that doesn't align properly.)

Thanks,

-- 
Raul


On Sat, Apr 26, 2014 at 12:01 PM, Vijay Lulla <[email protected]> wrote:
> R
> aul - Clever use of box characters!
>
>
> On Sat, Apr 26, 2014 at 11:59 AM, Brian Schott <[email protected]>wrote:
>
>> Not very short, but works, I think:
>>
>> |:,/1|:>4{.}.(2&":@*/,~ ,&' = '@('   ',[,' X ',] )&":/)&.>{{>: i."+ 5 9
>>
>>
>>
>> --
>> (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
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to