Consider: #:i:2 1 0 1 1 0 0 0 1 1 0
{.@#:@(,: 2 * >./@,)i:2 1 1 0 1 1 1 0 0 0 0 0 1 0 1 0 -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
Consider: #:i:2 1 0 1 1 0 0 0 1 1 0
{.@#:@(,: 2 * >./@,)i:2 1 1 0 1 1 1 0 0 0 0 0 1 0 1 0 -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm