Here's another variation, I'm not sure if it's elegant enough...

   Foo=: /:  >./ | %&3

Thanks,

-- 
Raul

On Wed, Dec 12, 2018 at 10:58 AM Raul Miller <[email protected]> wrote:
>
> Oops, thanks...
>
>    Foo=: (/:3|*)@/:~
>
> Seems like it could be simpler, though - I'll have to think about this...
>
> Thanks again,
>
> --
> Raul
>
> On Wed, Dec 12, 2018 at 10:55 AM Henry Rich <[email protected]> wrote:
> >
> > Foo _2 0 3 _1
> > 0 3 _2 _1
> > Foo _1 0 3 _2
> > 0 3 _1 _2
> >
> >
> > Henry Rich
> >
> >
> > On 12/12/2018 10:50 AM, Raul Miller wrote:
> > >     Foo=:/:3|*
> > >     Foo i:4
> > > 0 1 2 3 4 _4 _3 _2 _1
> > >
> > > Thanks,
> > >
> >
> >
> > ---
> > This email has been checked for viruses by AVG.
> > https://www.avg.com
> >
> > ----------------------------------------------------------------------
> > 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