I have found these options are often used. 4$, 1 2` 1 2 1 2` 3($,:) 1 2 1 2 1 2 1 2 ,3($,:) 1 2 1 2 1 2 1 2
On Fri, Dec 30, 2011 at 1:42 PM, Johann Hibschman <jhibsch...@gmail.com> wrote: > 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 -- (B=) <-----my sig Brian Schott ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm