The 0 0 $ discards the output and returns an empty matrix with no display. Compare:
a=: 0 0 $ 1!:2&2 b=: 1!:2&2 a'hello' hello b'hello' hello hello On Thu, Nov 13, 2014 at 2:26 PM, 'Pascal Jasmin' via Beta < [email protected]> wrote: > smoutput > 0 0 $ 1!:2&2 > > I've never understood why reshaping the output is desirable for any > purpose. If you define a verb as below, you also gain the ability to place > it between any operations without changing the input to those operations. > > pD > 1!:2&2 > > Perhaps of interest: > > > http://www.jsoftware.com/jwiki/PascalJasmin/The%20power%20of%20one%20line%20statements > > > > ----- Original Message ----- > From: Henry Rich <[email protected]> > To: [email protected] > Cc: > Sent: Thursday, November 13, 2014 5:15 PM > Subject: Re: [Jbeta] smoutput leaves the cursor ill-placed > > The line was in a websocket handler. It was simply > > smoutput wss0_jrx_ > > Perhaps the problem is that the line is being invoked as a response to a > socket event, without any keyboard action? > > The problem was at school, so I don't have the version on me, but I > installed on all machines yesterday, and updated with Package Manager. > > Henry Rich > > On 11/13/2014 3:05 PM, chris burke wrote: > > I cannot duplicate this, and smoutput works fine for me. What version are > > you running, and how are you entering the smoutput sentence? > > > > On Thu, Nov 13, 2014 at 11:56 AM, Henry Rich <[email protected]> > wrote: > > > >> smoutput 'xxx' > >> > >> prints xxx, but it leaves the cursor on the printed line, which is the > >> last line of the display. So, there is no easy way to type a new line. > >> > >> I suggest that it should append another empty line (indented 3 spaces) > to > >> allow for another command. > >> > >> Henry Rich > >> ---------------------------------------------------------------------- > >> 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 > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
