Jon, Can you provide an example input and desired output? It's not quite clear to me what you are trying to accomplish
Thanks Joe On Tue, Dec 2, 2014 at 7:58 PM, Jon Hough <[email protected]> wrote: > If y is a list and I have a dyadic verb u, which I want to apply to every > 4 items of y I can do > > x ( 4 u \) y > > > and this will apply x u to every 4 items. > > > But I want to continually update x every iteration. So after doing x u y > to the first 4 items, x becomes the result, > > > i.e. x =: x u y > > > How do I do this for all the list? > > > I tried things like > result =: leftArg ( 4 (leftArg =:) u \ )rightArg > > > but I can't get the correct syntax (assuming there is a way to do this). > (I hope my explanation made sense.) > Thanks. > > > > > > > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
