On Thu, Oct 30, 2008 at 07:07, Oleg Kobchenko <[EMAIL PROTECTED]> wrote: > 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
Scanning (suffix fold) is a nice idea that didn't occurr to me. As written, it takes quadratic time, but you can use scanfold in such a way that it takes only linear time: [^:(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 Ambrus ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
