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

Thanks,
Matthew.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to