[Jprogramming] J talk in NYC 1/21 - examples welcome
Devon McCormick
devonmcc at gmail.com
Fri Jan 17 18:37:00 UTC 2014
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 <rogerhui.canada at gmail.com>wrote:
> 1":blah is the same as 1j0":blah, but is less mysterious.
>
>
>
> On Fri, Jan 17, 2014 at 10:12 AM, Brian Schott <schott.brian at gmail.com
> >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 <rogerhui.canada at gmail.com
> > >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
More information about the Programming
mailing list