0 1 _1 0+2#1 2 1 2 1 2 0 0 _1 1+1|.2#1 2 1 2 1 2 (2 1)1 2}2#1 2 1 2 1 2
2011/12/30 Björn Helgason <gos...@gmail.com> > 0 2 1 3{2#1 2 > 1 2 1 2 > 0 1 0 1{1 2 > 1 2 1 2 > > > 2011/12/30 Johann Hibschman <jhibsch...@gmail.com> > >> 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 >> > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm