[Jprogramming] primitives I want: shift

Henry Rich HenryHRich at nc.rr.com
Fri Nov 18 05:53:05 HKT 2011


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.
>


More information about the Programming mailing list