[Jprogramming] primitives I want: shift
Raul Miller
rauldmiller at gmail.com
Fri Nov 18 05:41:08 HKT 2011
No.
But
shift=: }. {.~ (_1 ^ 0 > [) * #@[ {. $@]
would do the job.
--
Raul
On Thu, Nov 17, 2011 at 3:58 PM, Henry Rich <HenryHRich at nc.rr.com> wrote:
> So {.!.v would do what you want.
>
> Would also be nice if fill could be a non-atomic array.
>
> Henry Rich
>
> On 11/17/2011 3:52 PM, Raul Miller wrote:
> > shift=: 4 :0
> > fill=. {.0#,y
> > x |.!.fill y
> > )
> >
> > For example: 2 shift i.5 5
> >
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
More information about the Programming
mailing list