Continuing my J 101 questions, what's the best way to do a cyclical
(as opposed to element-wise) copy?

(2#1 2) gives (1 1 2 2), I want (1 2 1 2). The best I've come up with
is (,2#,:1 2). Is there a better way, or is that it?

Cheers,
Johann
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to