Dan Bron schreef:
>
> I suspect I've misunderstood your question, but is this what you want?
Forgive my weak English :-)
>
> zUr3=: (2$:1 0,~1+]) : ([EMAIL PROTECTED](>:@[$:],1,0$~1={)@.(<:{.))
> zUr3 7
> 1 0 1 1 0 1 0 1 1 0 1 1 0
>
Yes, indeed I want to avoid the `. IOW is there a way to do this
iteration by not dragging along the iterator.
>
> The only other approaches that occur to me right now involve changing your
> data structures to carry around extra information. That's doable, but
> unpleasant and probably not worth the performance penalty.
>
Performance comes second. I just want to come up with a wide variation
on the subject (still in the learning mode).
Thanks
=@@i
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm