I would prefer

   2 4 6 <@(]\) 'abcdefg'
┌──┬────┬──────┐
│ab│abcd│abcdef│
│bc│bcde│bcdefg│
│cd│cdef│      │
│de│defg│      │
│ef│    │      │
│fg│    │      │
└──┴────┴──────┘

but YMMV.


R.E. Boss


> -----Oorspronkelijk bericht-----
> Van: Programming <programming-boun...@forums.jsoftware.com>
> Namens Jimmy Gauvin
> Verzonden: donderdag 24 oktober 2019 22:50
> Aan: programm...@jsoftware.com
> Onderwerp: Re: [Jprogramming] Consecutive substrings (was Quora
> problem)
> 
> Yes Ric, better not to create them.
> In my haste I left out the parentheses, putting them back in does the "right
> thing" :
> 
>    2 4 6 <@(<\) 'abcdefg'
> ┌───────────────────┬─────────────────────┬───────────────
> ┐
> │┌──┬──┬──┬──┬──┬──┐│┌────┬────┬────┬────┐│┌──────┬────
> ──┐│
> ││ab│bc│cd│de│ef│fg│││abcd│bcde│cdef│defg│││abcdef│bcdefg││
> │└──┴──┴──┴──┴──┴──┘│└────┴────┴────┴────┘│└──────┴────
> ──┘│
> └───────────────────┴─────────────────────┴───────────────
> ┘
> 
> On Thu, Oct 24, 2019 at 4:14 PM Ric Sherlock <tikk...@gmail.com> wrote:
> 
> > Here you go Skip. Simple, but seems cleaner to me to prevent the
> > creation of the unwanted fill in the first place.
> >
> > a: -.~ ,(>:i.5)<\'abcde'
> >
> > On Fri, Oct 25, 2019 at 9:00 AM Skip Cave <s...@caveconsulting.com>
> wrote:
> >
> > > Removing the empty cells:
> > >
> > > a#~-.(<'')=a=.,(>:i.5)<\'abcde'
> > >
> > > │a│b│c│d│e│ab│bc│cd│de│abc│bcd│cde│abcd│bcde│abcde│
> > >
> > > I'm sure this can be reduced by J experts in implicit coding.
> > >
> > > Skip
> >
> >
> ----------------------------------------------------------------------
> 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