[Jprogramming] primitives I want: shift
Roger Hui
rogerhui.canada at gmail.com
Fri Nov 18 05:45:31 HKT 2011
How is this different from the primitive?
2 |.!.'' i.5 5
10 11 12 13 14
15 16 17 18 19
20 21 22 23 24
0 0 0 0 0
0 0 0 0 0
2 |.!.'' 5 7$'deipnosophist'
eipnoso
phistde
ipnosop
On Thu, Nov 17, 2011 at 12:52 PM, Raul Miller <rauldmiller at gmail.com> wrote:
> shift=: 4 :0
> fill=. {.0#,y
> x |.!.fill y
> )
>
> For example: 2 shift i.5 5
>
>
> --
> Raul
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
More information about the Programming
mailing list