Good suggestion and I can introduce a catenation variant too:
phrase,:1":+/\ 1 _1 0 {~ '{}' i. phrase
0{11{22{333}222}1}0
0111222333322221100
On Fri, Jan 17, 2014 at 1:31 PM, Roger Hui <[email protected]>wrote:
> 1":blah is the same as 1j0":blah, but is less mysterious.
>
>
>
> On Fri, Jan 17, 2014 at 10:12 AM, Brian Schott <[email protected]
> >wrote:
>
> > Another idea is to show the results in the following way which lines up
> > well with a nonproportional font.
> >
> > x,:1j0":+/\ 1 _1 0 {~ '{}' i. x
> > @{ foo; if (abc) { if (q) { m; } } }
> > 011111111111111112222222223333322110
> >
> >
> >
> > On Fri, Jan 17, 2014 at 11:24 AM, Roger Hui <[email protected]
> > >wrote:
> >
> > > Suggestion: Make more of a distinction between the data and the code.
> > > Thus:
> > >
> > > x=: '@{ foo; if (abc) { if (q) { m; } } }'
> > >
> > > +/\ 1 _1 0 {~ '{}' i. x
> > >
> > >
> > >
> > >
> > >
> > >
> > --
> > (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
>
--
Devon McCormick, CFA
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm