> -----Oorspronkelijk bericht----- > Van: [EMAIL PROTECTED] [mailto:programming- > [EMAIL PROTECTED] Namens Geoff Canyon > Verzonden: dinsdag 4 maart 2008 9:58 > Aan: Programming forum > Onderwerp: [Jprogramming] Turning 0 into _1 1 in a list > (...) > First, correct me if I'm wrong, but if the output from each input row > was shaped 2 4 instead of 1 2 4 I'd be set. The extra row of zeroes in > the output is just a framing fill, correct? If that's so, how do I > change the shape of the intermediate output?
M=:1 _1 0 1,1 1 _1 1,:0 1 0 _1 expndZrs0 =: (_1 1 (] i.&0)}"0 1 ])[EMAIL PROTECTED](# = i.&0) ([:; expndZrs0 &.>) <"1 M 1 _1 _1 1 1 _1 1 1 1 1 _1 1 _1 1 0 _1 1 1 0 _1 R.E. Boss ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
