> From: Matthew Brand <[EMAIL PROTECTED]>
>
> Hi All,
>
> Is there a tacit way to copy forward the number which occurs before
> the first zero in any sequence of zeroes into the positions of those
> zeroes?
>
> E.g. Is there a tacit f which does this:
> 0 f 1 0 2 3 4 5 0 0 0 4 3 2 4
> 1 1 2 3 4 5 5 5 5 4 3 2 4
Not strictly dyadic, but here is a simple tacit idea:
[^:(0=])/\ 1 0 2 3 4 5 0 0 0 4 3 2 4
1 1 2 3 4 5 5 5 5 4 3 2 4
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm