Hi Lafras,
It sounds like you don't want the whole sum of the carry's just the sum of the
last two in each group. When I use your S as you have defined it I get
S
36 35 26 16 22 32
then I take the vector overlapping 2 at a time to make a table
2 ]\ S
36 35
35 26
26 16
16 22
22 32
then I apply carry on each row
2 ([: carry/"1 ]\ ) S
38 29 18 23 34
Is this what you had in mind?
Cheers, bob
ps. (you are the first Lafras I have met. Cool name :-) )
> On May 22, 2017, at 2:50 AM, Lafras Uys <[email protected]> wrote:
>
> L:0 < \ S
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm