Impressive:
]cap =.(65+i.26){a.
ABCDEFGHIJKLMNOPQRSTUVWXYZ
]alphtest=.(?15#3){cap
CBACABCAACCBBBC
seqbx=.(<;.1~ 1, }.~:}:)
seqbx alphtest
┌─┬─┬─┬─┬─┬─┬─┬──┬──┬───┬─┐
│C│B│A│C│A│B│C│AA│CC│BBB│C│
└─┴─┴─┴─┴─┴─┴─┴──┴──┴───┴─┘
Thanks xash!
Skip Cave
Cave Consulting LLC
On Thu, Oct 21, 2021 at 12:20 PM xash <xash@λ.land> wrote:
> Oh, or even simpler I guess:
>
> (<;.1~ 1, }.~:}:) 0 1 0 1 1 1 0 0
>
> On Thu Oct 21, 2021 at 7:14 PM CEST, xash wrote:
> > (</.~ [:+/\ 0, }.~:}:) 0 1 0 1 1 1 0 0
> >
> > On Thu Oct 21, 2021 at 7:01 PM CEST, Raoul Schorer wrote:
> > > Hi,
> > >
> > > Really trivial question I am stuck on:
> > >
> > > given a bit vector
> > > 0 1 0 1 1 1 0 0
> > >
> > > how to easily sequentially box 1s & 0s? Such as:
> > > |0|1|0|1 1 1|0 0|
> > >
> > > Thanks!
> > > Raoul
> > > ----------------------------------------------------------------------
> > > 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