Oh, I mistyped.  I meant

   |.!.v where that would be defined as

   |.!.(v y)  or  |.!.(x v y)

which would allow, for example, shift using the first element as fill.

but if all you want is 0-fill, you have |.!.0

Henry Rich

On 11/17/2011 4:41 PM, Raul Miller wrote:
> No.
>
> But
>     shift=: }. {.~  (_1 ^ 0>  [) * #@[ {. $@]
> would do the job.
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to